Auto-increment primary key in SQL tables

前端 未结 6 1182
执念已碎
执念已碎 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条回答
  •  失恋的感觉
    2020-12-02 17:11

    Right-click on the table in SSMS, 'Design' it, and click on the id column. In the properties, set the identity to be seeded @ e.g. 1 and to have increment of 1 - save and you're done.

提交回复
热议问题