首页 > 代码库 > oracle给表及列添加注释

oracle给表及列添加注释

给表添加注释

comment on   table    MW_SYS.MWT_OM_OBJ1 is ‘业务类型的对象实例。‘;

给表中的列添加注释

comment on column MW_SYS.MWT_OM_OBJ1.OBJ_ID is  ‘对象的唯一标示符。‘;
comment on column MW_SYS.MWT_OM_OBJ1.OBJ_LOCALID is ‘对象本地标识。‘;
comment on column MW_SYS.MWT_OM_OBJ1.OBJ_CAPTION is ‘用于缓存对象显示时的标题。‘;
comment on column MW_SYS.MWT_OM_OBJ1.CLS_ID is ‘类型的唯一标识符。‘;
comment on column MW_SYS.MWT_OM_OBJ1.SDOBJ_ID is ‘对象安全域的唯一标识符。‘;
comment on column MW_SYS.MWT_OM_OBJ1.STATE_ID is ‘状态的唯一标识符。‘;

 

http://blog.csdn.net/sensego/article/details/6059751

oracle给表及列添加注释