Auto increment primary key in SQL Server Management Studio 2012

前端 未结 11 1252
谎友^
谎友^ 2020-11-22 10:11

How do I auto increment the primary key in a SQL Server database table, I\'ve had a look through the forum but can\'t see how.

11条回答
  •  一向
    一向 (楼主)
    2020-11-22 10:38

    You have to expand the Identity section to expose increment and seed.

    enter image description here

    Edit: I assumed that you'd have an integer datatype, not char(10). Which is reasonable I'd say and valid when I posted this answer

提交回复
热议问题