語句:
comment on table 表名 is '表的注釋信息'; comment on column 表名.字段名 is '字段的注釋信息';
注意表名的大小寫
例如:
1、創建表:
CREATE TABLE Student(
id varchar2(32) primary key,
name varchar2(8) not null,
age number
);
2、添加表注釋:
Comment on table Student is '個人信息';
修改表注釋:
Comment on table Student is '學生個人信息';
3、添加字段注釋:
comment on column Student.id is 'id';
comment on column Student.name is '姓名';
comment on column Student.age is '年齡';
修改字段注釋:
comment on column Student.id is '學生id';
comment on column Student.name is '學生姓名';
comment on column Student.age is '學生年齡';