修改表名
ALTER TABLE old table name RENAME TO new_table_name;
CREATE TABLE new table name AS SELECT * FROM old table_ name;
DROP TABLE old_table_name;
修改字段默认值
alter table 表名 drop constraint 约束名字一说明:删除表的字段的原有约束
alter table 表名 add constraint约束名字DEFALLT 默认值for字段名称一--—说明:添加
一个表的字段的约束并指定默认值
alter table T_FUP_RED EEM drop column EIZ_REQL NO;
3.修改字段名:
alter table 表名 rename column A to B
alter table T_FUP_REDEEM rename column BIZ_ REQ_ NO to BIZ RN_NO.
修改字段关型:
alter table 表名 modify column UnitP rice decimal(18.4) not null
alter table T_FUP_USER RISK modify TRANSMIT VARCHAR2(500 BYTE)
修改增加宁段:
alter table 表名 ADD字段 类型 Default O NOT NOLL 注:Default0必须放在 NOT NULL 前面
alter table T_FUP_SUBACCOUNT add LOCK_AMOUNT NUMBER(18) Default O;
修改字段描述
comment on column T_FUP_FUNDINFO.RISK_LEVEL is