日期:2014-05-17  浏览次数:20465 次

web开发中的sql语句
mainThesisCommand.CommandText = "update thesisSet set MAINSELECTED=true where THESISNAME="+lblSelMain.Text; 为什么老是提示“至少一个参数没有被指定值”。跟踪时是对的啊
web开发 sql asp.net

------解决方案--------------------
mainThesisCommand.CommandText = "update thesisSet set MAINSELECTED=true where THESISNAME='"+lblSelMain.Text + "'";