-1

以下代码给了我一个错误;

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);

',' 附近的语法不正确

任何人都可以对此提供见解吗?

4

1 回答 1

2

这可能是因为存储过程后缺少空格

dt = sFunctions.ExecuteQuery(Variables.con, "House_Machinery", 
  "usp_housemachinery_Master_insert " + Id 

我还建议您考虑以下技术来消除此类问题:

于 2013-01-12T09:26:16.617 回答