Auto-increment primary key in SQL tables

前端 未结 6 1188
执念已碎
执念已碎 2020-12-02 16:54

Using Sql Express Management Studio 2008 GUI (not with coding), how can I make a primary key auto-incremented?

Let me explain: there is a table which has a column na

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 17:09

    1. Presumably you are in the design of the table. If not: right click the table name - "Design".
    2. Click the required column.
    3. In "Column properties" (at the bottom), scroll to the "Identity Specification" section, expand it, then toggle "(Is Identity)" to "Yes".

    enter image description here

提交回复
热议问题