What does “Is Identity” column property mean in SQL Server?

后端 未结 3 721
谎友^
谎友^ 2021-01-07 18:00

I am using SQL Server for the first time and I see that a column property is called Is Identity.

What does this mean?

What

3条回答
  •  旧巷少年郎
    2021-01-07 18:59

    Flag indicating an Identity Column - can be used as an auto-increment column (recommended for any table)

    it has many implications like being able to get the id of the last inserted row in a table using @@IDENTITY or SCOPE_IDENTITY() etc.

    Try: Understanding Identity Columns

提交回复
热议问题