alert table
 qty numeric
 price float,default null

解决方案 »

  1.   

    alert table 表名
     alert column qty numericgo 
    alert table 表名
     alert column price float,default null
      

  2.   

    上一半是对的,price的修改却不正确
      

  3.   

    alter table test1 
      
       alter column qty floatgoalter table test1
     
       alter column price float
    新建的字段默认的都是null
      

  4.   

    但我要求qty的默认值不为null,可赋0
      

  5.   

    alert table 表名
     alert column qty float not null
    go 
    alert table 表名
     alert column price float default 
      

  6.   

    在企业管理器中可以把qty字段的初始值设置一下,当不更新数据时,就是你所设置的初始值!