以下代码给我一个错误;
dt = sFunctions.ExecuteQuery(Variables.con, "House_Machinery", "usp_housemachinery_Master_insert" + Id + ",'" + txtItemName.Text + "'," + txthp.Text + "," + txtrate.Text + "," + Variables.sTendercode + "," + Variables.StrResourceHeaderCode);
sFunctions.setSqldbConnCommand_Close(sSqldbCommand);
','
附近的语法不正确任何人都可以对此有所了解吗?
答案 0 :(得分:2)
可能是因为存储过程后缺少空间
dt = sFunctions.ExecuteQuery(Variables.con, "House_Machinery",
"usp_housemachinery_Master_insert " + Id
我还建议您考虑以下技术来消除此类问题: