Oracle 表字段操作

-- 添加字段
alter table table_name add (字段名 字段类型 默认值 是否为空);
alter table sf_users add (HeadPIC blob);
alter table sf_users add (userName varchar2(30) default '空' not null);
-- 修改字段
alter table 表名 modify (字段名 字段类型 默认值 是否为空);
alter table sf_InvoiceApply modify (BILLCODE number(4));
-- 删除字段
alter table 表名 drop column 字段名;
alter table sf_users drop column HeadPIC;

  

posted @ 2018-11-08 14:29  天蓝隐湘  阅读(168)  评论(0编辑  收藏  举报