【发布时间】:2015-08-13 10:29:18
【问题描述】:
'=' 附近的语法不正确
我的代码是
"update staff_Tables
set emp_id='" + txtEmployeeID.Text + "' ,
emp_sal='" + txtEmpSal.Text + "',
emp_name='" + txtEmployeeName.Text + "',
emp_Deignation='" + txtDesignation.Text + "',
Gender='" + cboGender.Text + "',
contactno='" + txtContact.Text + "',
Address='" + rtbAddress.Text + "',
Joining_Date='" + txtjoindate.Text + "'
where txtid=" + txtid.Text, sqlcon.getCon());
【问题讨论】:
-
欢迎来到stackoverflow。我已经编辑了您的问题以改进格式。请阅读How to Ask。
-
emp_sal列的数据类型是什么
标签: sql sql-server sql-server-2008 visual-studio-2012 sql-update