alter table tbname add [id] int identity(1,1) primary key

解决方案 »

  1.   

    create table t (id int identity(1,1))
      

  2.   

    creat table a (zdbh int identity(1,1))
      

  3.   

    不好意思 本人菜鸟一个 
    在SQL server 2000中怎样直接用SQL语句创建表.
      

  4.   

    create table tbname (ID int identity(1,1) primary key)
      

  5.   


    CREATE TABLE TB_TEST(ID int  identity(1,1),Name varchar(10))insert into TB_TEST(name) select('china')
    insert into tb_test(name) select('english')select * from TB_TESTdrop table TB_TEST