[基础]Oracle alter

mac2022-06-30  23

rename 修改字段名称

alter table tb rename column co1 to col1;

 

modify  修改字段的属性(表中必须没有数据)

alter table tb modify(id varchar2(20));

转载于:https://www.cnblogs.com/Uncho/p/4058848.html

最新回复(0)