在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
复制代码 代码如下: using MySql.Data.MySqlClient; MySqlConnection conn = new MySqlConnection("server=(local);database=abc;uid=;pwd="); conn.Open(); MySqlCommand com = new MySqlCommand("select * from tb_xxjj",conn); MySqlDataReader dr = com.ExecuteReader(); dr.Read(); TB_xxjj.Text = dr["title"].ToString(); content.Text = dr["content"].ToString(); |
请发表评论