mysql驱动类2.0的MySQLDriverCS太垃圾了.再不用mysql免费也不用乱写啊,会死人的
测试代码如下,你们执行看看ds里面的table,bb里面是aa的内容.太垃圾了:
DataSet ds = new DataSet();
MySQLConnection conn = new MySQLConnection();
conn.ConnectionString = "Data Source=test;Location=localhost;User ID=root;Password=root;Character Set =gb2312 ";
MySQLDataAdapter da = new MySQLDataAdapter( "SELECT * FROM aa ", conn);
da.Fill(ds, "aa ");
da.SelectCommand.CommandText = "SELECT * FROM bb ";
da.Fill(ds, "bb ");
------解决方案--------------------你要重新set da的啊
------解决方案--------------------你大代码写的有问题,关MYSQL什么?