且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SQL表中的自增主键

更新时间:2023-02-03 08:07:15

  1. 想必您正在设计桌子.如果不是:右键单击表名称 - 设计".
  2. 点击所需的列.
  3. 列属性"(底部)中,滚动到身份规范"部分,将其展开,然后切换(是身份)"" 到 "".
  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".