DataTable dt= new DataTable();
string mysql = "select.......";
dt= GetDBData(mysql);
int DataRows = dt.Rows.Count;
int aaa = int.Parse(dtTempUnitData.Rows[0][0].ToString());
//////////
我在sql里用query工具查出来上面的mysql是可用的,而且DataRows也不为0,为什么报错There is no row at position 0
谢谢知道的回答一下哦~~
string mysql = "select.......";
dt= GetDBData(mysql);
int DataRows = dt.Rows.Count;
int aaa = int.Parse(dtTempUnitData.Rows[0][0].ToString());
//////////
我在sql里用query工具查出来上面的mysql是可用的,而且DataRows也不为0,为什么报错There is no row at position 0
谢谢知道的回答一下哦~~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货