且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

oracle 建表后添加表注释及字段注释

更新时间:2022-09-11 22:57:28

oracle添加表注释和表字段注释

创建Oracle数据库表时候加上注释


CREATE TABLE t1(
id  varchar2(32) primary key,
name VARCHAR2(8) NOT NULL,
age number,
)

添加表注释:
COMMENT ON table t1 IS '个人信息';

添加字段注释:
comment on column t1.id  is 'id';
comment on column t1.nameis '姓名';
comment on column t1.age is '年龄';