我在用SQL建新表是需要把某个字段设置默认值,不知怎么做(Default DefaultValue 不起作用啊)  急、、、、、、

解决方案 »

  1.   

    CREATE TABLE [dbo].[:name ] (
    [zm] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
    [zgzs] [int] NULL ,
    [qzgz] [int] NULL ,
    [dzys] [int] NULL ,
    [dzzs] [int] NULL ,
    [zz] [int] NULL ,
    [zzzs] [int] NULL ,
    [jx] [int] NULL ,
    [zg] [int] NULL ,
    [gz] [int] NULL ,
    [cz] [int] NULL ,
    [xxjyx] [int] NULL ,
    [gjzc] [int] NULL ,
    [zjzc] [int] NULL ,
    [cjzc] [int] NULL ,
    [gjjs] [int] NULL ,
    [js] [int] NULL ,
    [gj] [int] NULL ,
    [zj] [int] NULL ,
    [cj] [int] NULL ,
    [xt] [int] NULL ,
    [qt] [int] NULL ,
    [35yx] [int] NULL ,
    [36z45] [int] NULL ,
    [46z60] [int] NULL