早教吧作业答案频道 -->其他-->
执行修改时关键字'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-06-05 …
请用下面的字组成一句话错不中错改知错错知算错不改错 2020-06-05 …
用下表的字组成两句话错不中错改知错错改算错不知错 2020-06-08 …
用下面的字,组成两句话.1.错不中错改知错2.错改算错不知错 2020-06-08 …
用错错错错错错不不中改改算知知知错不改,错中错,知错改错,不算错知错改错不算错知错不该错错错知错不 2020-06-13 …
“西元一五一七年十月三十一日,马丁•路德•金在萨克森选侯教堂张贴《有关赎罪券辩论之邀请》,揭开了宗 2020-06-30 …
小于改正了错误承认了错误是一个知错改错的好孩子改错 2020-11-01 …
修改病句1、爱丽丝润肤霜:特别适合各种皮肤.哪里错了?2、受灾地区地方政府做出了巨大努力.巨大错了, 2020-11-22 …
在括号里填上合适的字,注意前号词语搭配恰当.1改()-环境,面貌2改()-生活,关系3改()-工作, 2020-11-23 …
关于ornorThegovernmentwantedtomaketheMicrosoftcompan 2020-11-26 …