SQL statement to insert record into table that has identity column?

后端 未结 4 1692
忘掉有多难
忘掉有多难 2021-01-24 10:02

I am attempting to insert a row manually into my SQL Server data table. This table has 5 columns, one identity and four data columns. I looked at this post, but when I run the s

4条回答
  •  情话喂你
    2021-01-24 10:46

    Not sure what you mean by "crashes" but, that second statement should work providing you have the identity specification set correctly on the table. Right-click the table in mangement studio and look at the properties for the id column. isIdentity should be "Yes" and identity increment should be 1.

提交回复
热议问题