原来字段类型为 decimal(18,0)
现在要修改为   decimal(18,2)不是在SQL管理 器里面修改,是要写成SQL脚本后在查询分析中执行修改

解决方案 »

  1.   

    alter table tb
      alter 列名 decimal(18,2)
      

  2.   

    ALTER TABLE table 
     ALTER COLUMN column_name new_data_type 
      

  3.   

    alter table #t alter column col decimal(18,2)
      

  4.   

    alter table tb alter column col decimal(18,2)
      

  5.   

    alter table tab 
    alter column columnname decimal(18,2)
      

  6.   

    alter table tab 
    alter column columnname decimal(18,2) not null
      

  7.   

    alter table tb alter column col decimal(18,2)
      

  8.   

    alter table table_name alter column column_name numeric(18,2)
      

  9.   

    alter table tb 
      alter 列名 decimal(18,2)