create table test ( a int identity(1,1) , b int)goa 自动编号

解决方案 »

  1.   

    create table test ( id int identity(1,1) )
    int identity(1,1)自动编号,加一
    identity(start,addcount)
    identity(3,4)
    开始是3,增加一条记录增加4
      

  2.   

    谢谢了,我也正在寻找这个问题,这么说不能用WINDOW的创建TABLE向导来完成了,只能在SQL 情况下来完成了。谢谢了。看来不就不用在发帖子了
      

  3.   

    将数据类型设为int,并且在将其标识设为“是”,种子值是其初始值,一般为1,增量为1,这是默认的值,即实现自动编号,编号即为自然数系列,也是我们一般用到的,也可以设为其他的值
      

  4.   

    设计表时,类型选择Int 或Bigint等,再将其标识设为“是”