--这样?
create table XL_栏目 

栏目流水号    identity(int,1,1) 
,名称    nvarchar(25) 
,PRIMARY KEY (栏目流水号)  
) 还是?   这个对吗?
create table XL_栏目 

栏目流水号    int
,名称    nvarchar(25) 
,PRIMARY KEY (栏目流水号)  identity(int,1,1)

解决方案 »

  1.   

    ---我觉得是这个
    create table XL_栏目 

    栏目流水号    identity(int,1,1) 
    ,名称    nvarchar(25) 
    ,PRIMARY KEY (栏目流水号)  
      

  2.   

    有没有办法把identity(int,1,1)   放到,PRIMARY KEY (栏目流水号)  identity(int,1,1) 语句中
      

  3.   

    建表时必须是 int identity(1,1) 类似这样的
    identity(int,1,1) 只能在  select ..into ..from.. 
      

  4.   


    create table XL_栏目 

    栏目流水号  int  identity(1,1) PRIMARY KEY 
    ,名称    nvarchar(25) 

      

  5.   


     identity(int,1,1)
    --这种只能用在 into 语句中!
      

  6.   

    create table XL_栏目 

    栏目流水号  int  identity(1,1) PRIMARY KEY 
    ,名称    nvarchar(25) 

      

  7.   

    --这样? 
    create table XL_栏目 

    栏目流水号    identity(int,1,1) 
    ,名称    nvarchar(25) 
    ,PRIMARY KEY (栏目流水号)  
    ) 还是?  这个对吗? 
    create table XL_栏目 

    栏目流水号    int 
    ,名称    nvarchar(25) 
    ,PRIMARY KEY (栏目流水号)  identity(int,1,1) 
    )--1
    create table XL_栏目 

    栏目流水号  int identity(1,1) 
    ,名称    nvarchar(25) 
    ,PRIMARY KEY (栏目流水号)  

    --2
    alter table XL_栏目 add  列 primary key int  identity(1,1)
      

  8.   

    create table XL_栏目 

    栏目流水号  int   identity(1,1) 
    ,名称    nvarchar(25) 
    ,PRIMARY KEY (栏目流水号)  
    )
      

  9.   

    用企业管理器 建完表  点一下sql脚本
    自动生成  看一下就行了
      

  10.   

    你安装SQLSERVER 不安装联机帮助呀
    呵呵
    查一下呀