请高手指点,数据库连上了,不知道怎么读,请高手给个简单的代码
解决方案 »
- C#实现PC机利用手机GPRS上网
- 在javascript中 调用 点击函数?
- 【20】 关于 用FOREACH 和this.Contains 写重置按钮的问题
- 哪里可以下载Ghostdoc的源码?
- aaa
- 上传文件不用<input type="file">还有没有别的办法?
- 我在网上下载了一个IP地址的控件,一个cs文件和一个resx文件,请问怎样用啊??
- 自定义的PropertyChanged 触发事件中设置textbox.text居然不能显示
- C#,大家来发表一下看法吧!!!!!!
- 通过360极速浏览器。。。。
- 关于ADO.net参数化模糊查询的问题 代码如下:
- c#处理调用c++的dll,详情见文章内容。谢谢关注
http://www.albertsong.com/read-58.html
c#连接MySql数据库的两种方法
http://dotnet.chinaitlab.com/CSharp/744168.html
我写的,
MySqlConnection myConn = new MySqlConnection("server=127.0.0.1;user id=a0421153116; password=a0421153504253; database=a0421153116; pooling=false;port=3306");
myConn.Open();
MySqlCommand cmd = myConn.CreateCommand();
cmd.CommandText = "select * from kfz_customers where id=2"; MySqlDataAdapter Da= new MySqlDataAdapter("select * from kfz_customers where id=2", myConn);接下来,如何读取呢?怎么把值在winform上显示出来呢,请指点