Insert data into SQL Server from C# code

前端 未结 7 1859
自闭症患者
自闭症患者 2021-01-06 06:59

I have a table student (id, name). Then I have one textbox, for entering the name, when click on submit button, it inserts the data into the databa

7条回答
  •  清酒与你
    2021-01-06 07:22

    You don't need to mention the ID in first part.

    insert into student(name) values('name') 
    

提交回复
热议问题