.net中关于SQL语句使用字符串拼接出现的错误!!!
xmtemp和label20.Text的都是值为11,是一个存在的表名......stringcmdStr3="insertinto"+label20.Text+"(bu...
xm temp 和label20 .Text的都是值为11,是一个存在的表名
......string cmdStr3 = "insert into "+ label20 .Text +"(buyticket) values(@buyticket)";......
......string cmdStr ="select * from "+ xm;......
......string cmdStr = "delete * from "+ temp +" where buyticket=@buyticket";......
这三句的错误提示是: 11附近有错误 展开
......string cmdStr3 = "insert into "+ label20 .Text +"(buyticket) values(@buyticket)";......
......string cmdStr ="select * from "+ xm;......
......string cmdStr = "delete * from "+ temp +" where buyticket=@buyticket";......
这三句的错误提示是: 11附近有错误 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询