环境:vs2010,使用MySQLDriverCS访问mySQL代码:
string sqlString = "select * from TB";MySQLConnection sqlConn = new MySQLConnection(new MySQLConnectionString("IP地址","数据库","用户名","密码"));sqlConn.Open();MySQLDataAdapter sqlAda = new MySQLDataAdapter(sqlString,sqlConn);DataSet ds = new DataSet();sqlAda.Fill(ds,"myTable");//该句出错,提示信息为:捕捉到ArgumentException 此结构不得为值类 参数名:structure
string sqlString = "select * from TB";MySQLConnection sqlConn = new MySQLConnection(new MySQLConnectionString("IP地址","数据库","用户名","密码"));sqlConn.Open();MySQLDataAdapter sqlAda = new MySQLDataAdapter(sqlString,sqlConn);DataSet ds = new DataSet();sqlAda.Fill(ds,"myTable");//该句出错,提示信息为:捕捉到ArgumentException 此结构不得为值类 参数名:structure
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货