更新语句是:
string MySql="update users set state=0 where userid="+UserId;
SqlCommand Mycommand =new SqlCommand(MySql,Myconn);
Mydatareader.ExecuteNonquenry;//拼写可能有误,但程序里是对的
这条语句在查询分析器里可以执行,但在程序里就不行,程序里执行到Mydatareader.ExecuteNonquenry就不往后执行了
string MySql="update users set state=0 where userid="+UserId;
SqlCommand Mycommand =new SqlCommand(MySql,Myconn);
Mydatareader.ExecuteNonquenry;//拼写可能有误,但程序里是对的
这条语句在查询分析器里可以执行,但在程序里就不行,程序里执行到Mydatareader.ExecuteNonquenry就不往后执行了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货