早教吧作业答案频道 -->其他-->
执行修改时关键字'and'附近有语法错误.privatestringGETRJZZQXX="select*fromrxzzqxx";privatestringCHECKRJZZQXX="selectrjzzqID,owner,softname,catagory,sydw,softnumber,djsj,otherownerfromrxzzqxxwhererjzzqID=@rjzzqIDando
题目详情
执行修改时关键字 'and' 附近有语法错误.
private string GET_RJZZQXX = "select * from rxzzqxx";
private string CHECK_RJZZQXX = "select rjzzqID,owner,softname,catagory,sydw,softnumber,djsj,otherowner from rxzzqxx where rjzzqID=@rjzzqID and owner=@owner and softname=@softname and catagory=@catagory and sydw=@sydw and softnumber=@softnumber and djsj=@djsj and otherowner=@otherowner";
private const string ADD_RJZZQXX = "insert into rxzzqxx(rjzzqID,owner,softname,catagory,sydw,softnumber,djsj,otherowner) values(@rjzzqID,@owner,@softname,@catagory,@sydw,@softnumber,@djsj,@otherowner)";
private const string DEL_RJZZQXX = "delete from rxzzqxx where rjzzqID=@rjzzqID";
private const string MOD_RJZZQXX = "update rxzzqxx set owner=@owner and softname=@softname and catagory=@catagory and sydw=@sydw and softnumber=@softnumber and djsj=@djsj and otherowner=@otherowner where rjzzqID=@rjzzqID";
private const string QUERY_RJZZQXX = "select * from rxzzqxx where ";
private const string QUER_LIST = "select * from rxzzqxx";
private const string QUER_LIST_TEXTBOX = "select * from rxzzqxx where rjzzqID=";
值不能为 null.
参数名:control if (Modify.modifyuser(rjzzqID,owner,softname,catagory,sydw,softnumber,djsj,otherowner))
{
ScriptManager.RegisterStartupScript(UpdatePanel2,this.GetType(),"updateScript","alert('修改成功!')",true);
SELECT();
}值不能为 null.
参数名:control
private string GET_RJZZQXX = "select * from rxzzqxx";
private string CHECK_RJZZQXX = "select rjzzqID,owner,softname,catagory,sydw,softnumber,djsj,otherowner from rxzzqxx where rjzzqID=@rjzzqID and owner=@owner and softname=@softname and catagory=@catagory and sydw=@sydw and softnumber=@softnumber and djsj=@djsj and otherowner=@otherowner";
private const string ADD_RJZZQXX = "insert into rxzzqxx(rjzzqID,owner,softname,catagory,sydw,softnumber,djsj,otherowner) values(@rjzzqID,@owner,@softname,@catagory,@sydw,@softnumber,@djsj,@otherowner)";
private const string DEL_RJZZQXX = "delete from rxzzqxx where rjzzqID=@rjzzqID";
private const string MOD_RJZZQXX = "update rxzzqxx set owner=@owner and softname=@softname and catagory=@catagory and sydw=@sydw and softnumber=@softnumber and djsj=@djsj and otherowner=@otherowner where rjzzqID=@rjzzqID";
private const string QUERY_RJZZQXX = "select * from rxzzqxx where ";
private const string QUER_LIST = "select * from rxzzqxx";
private const string QUER_LIST_TEXTBOX = "select * from rxzzqxx where rjzzqID=";
值不能为 null.
参数名:control if (Modify.modifyuser(rjzzqID,owner,softname,catagory,sydw,softnumber,djsj,otherowner))
{
ScriptManager.RegisterStartupScript(UpdatePanel2,this.GetType(),"updateScript","alert('修改成功!')",true);
SELECT();
}值不能为 null.
参数名:control
▼优质解答
答案和解析
update rxzzqxx set owner=@owner and softname=@softname and catagory=@catagory and sydw=@sydw and softnumber=@softnumber and djsj=@djsj and otherowner=@otherowner where rjzzqID=@rjzzqID
把set后的and改成逗号,
update rxzzqxx set owner=@owner ,softname=@softname ,catagory=@catagory ,sydw=@sydw ,softnumber=@softnumber ,djsj=@djsj ,otherowner=@otherowner where rjzzqID=@rjzzqID;
补充:
在update或者insert 的时候,有字段不允许为null,但是你传了null过去.
把set后的and改成逗号,
update rxzzqxx set owner=@owner ,softname=@softname ,catagory=@catagory ,sydw=@sydw ,softnumber=@softnumber ,djsj=@djsj ,otherowner=@otherowner where rjzzqID=@rjzzqID;
补充:
在update或者insert 的时候,有字段不允许为null,但是你传了null过去.
看了执行修改时关键字'and'附近...的网友还看了以下:
关于词汇积累和易混词发现做改错的时候,有很多都是因为词汇量不够和易混词影响导致做错,大家复习词汇时 2020-05-17 …
英语翻译对的时间,遇见对的人,是一生幸福;对的时间,遇见错的人,是一场心伤;错的时间,遇到错的人, 2020-05-17 …
更正错账时,划线更正法的适用范围是()。A、记账凭证上的会计科目或记账方向错误,导致账簿记录有错误 2020-07-01 …
选择题14个一般错6,7个,有时稍微好点就错4个,感觉像在碰运气.每次选择题中成语都错(有时拼音词 2020-07-03 …
英语翻译4、错不可怕,就怕一错再错每一个人都有犯错的时候,工作中第一次做错了不要紧,公司领导会纠正并 2020-11-03 …
晴空向晚的语录对的时间遇上错的人,错的时间遇上多的人,对的时间遇上对的人,错的时间遇上错的人 2021-01-01 …
爱得及时胜过爱得太迟,对吗?在错的时间里遇上对的人,是一种错;那在对的时间里错过对的人,更是一种错; 2021-01-19 …
无论什么事都需要天时地利人和在对的时间遇到对的人是一种幸福,在对的时间遇到错的人是一种心伤与无奈,在 2021-01-19 …
用四个表达心情的成语分别描述以下四个问题〔1〕在对的时间遇到对的人〔2〕再对的时间遇到错的人〔3〕在 2021-01-20 …
用四个表达心情的成语分别描述以下四个问题〔1〕在对的时间遇到对的人〔2〕再对的时间遇到错的人〔3〕在 2021-01-20 …