Inserting values into a SQL Server database using ado.net via C#

后端 未结 5 2059
春和景丽
春和景丽 2020-12-02 23:47

I have created a simple program to insert values into the table [regist], but I keep getting the error

Incorrect syntax near \')\'

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 00:13

    Remove the comma

    ... Gender,Contact, " + ") VALUES ...
                      ^-----------------here
    

提交回复
热议问题