id varchar2(32) primary key,
name VARCHAR2(32) ,
age VARCHAR2(32)
)
COMMENT 判宴昌掘扒ON table t1 IS '个人信息'
添加字段注释:
comment on column t1.id is 'id'
comment on column t1.name is '姓名'
comment on column t1.age is '年祥中龄'
通过设置模板来设置。在ORACLE中给表列增加注释以及读取注释,纳羡给表御伍填加注释:SQL>commentonable表名is表注释,给列加注释:SQL>commentoncolumn表.列is列注释,读取表注释:SQL>select*fromuser_tab_commentswherecommentsisnotnull,读取列注释:SQL>select*fromuser_col_commnentswherecommentsisnotnullandable_name='表名。洞拆拍
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)