How do I alter the precision of a decimal column in Sql Server?

前端 未结 5 811
野性不改
野性不改 2020-12-25 09:18

Is there a way to alter the precision of an existing decimal column in Sql Server?

5条回答
  •  爱一瞬间的悲伤
    2020-12-25 09:48

    ALTER TABLE (Your_Table_Name) MODIFY (Your_Column_Name) DATA_TYPE();
    

    For you problem:

    ALTER TABLE (Your_Table_Name) MODIFY (Your_Column_Name) DECIMAL(Precision, Scale); 
    

提交回复
热议问题