sql
alter TABLE T_CONTRACT modify PAY_MONEY NUMBER(10, 2);
已有數據修改
alter table T_CONTRACT add (PAY_MONEY_TEMP number(18,2));
update T_CONTRACT set PAY_MONEY_TEMP = round(PAY_MONEY,2);
alter table T_CONTRACT drop column PAY_MONEY;
alter table T_CONTRACT add (PAY_MONEY number(18,2));
update T_CONTRACT set PAY_MONEY = PAY_MONEY_TEMP;
alter table T_CONTRACT drop column PAY_MONEY_TEMP;