发布网友 发布时间:2024-10-23 19:28
共5个回答
热心网友 时间:2024-11-07 00:19
string mysql = "select * from user where userName="+"'"+UserName+"'"+"And userPwd=" + "'" + Password + " ' ";热心网友 时间:2024-11-07 00:25
string mysql = "select * from user where userName="+"'"+UserName+"'"+" And userPwd=" + "'" + Password + " ' ";热心网友 时间:2024-11-07 00:20
string mysql = "select * from [user] where userName="+"'"+UserName+"'"+"And userPwd=" + "'" + Password + " ' ";热心网友 时间:2024-11-07 00:25
user属于sql里的关键字,所以会报错,一般不要用关键字作为表名,如果关键字做表名用[]括起来,热心网友 时间:2024-11-07 00:25
string mysql = "select * from user where userName="+"'"+UserName+"'"+"And userPwd=" + "'" + Password + " ' ";