访问数据库的时候有时候会出现“MySql.Data.MySqlClient.MySqlException”类型的第一次机会异常在 MySql.Data.dll 中发生这个错。而且这个异常不会被catch到。这到底是什么错误呢?
MySqlConnection conn = null;
String strSQL = String.Format("select * from user where username='{0}' and password='{1}'", username, password);
conn = db.getMySQLConn();
int existCheck = db.exeMySQLCmdCheck(strSQL, conn);
MySqlConnection conn = null;
String strSQL = String.Format("select * from user where username='{0}' and password='{1}'", username, password);
conn = db.getMySQLConn();
int existCheck = db.exeMySQLCmdCheck(strSQL, conn);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货