
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 '年龄'
先把表里面的数据导出来备份。alter table T_USERRECHARGE add(PAYMENT varchar2(64))再把数据导进去就可以了。
使用comment on,举个例子:create table EMP( empid NUMBER)comment on table EMP is '员工信息'--添加表描述 comment on column EMP.empid is '员工编号'--添加列描述。
Oracle数据库的建表语句create table没有增加注释的功能。可以通过注释语句comment来创建注释,例如:
comment on column table_name.column_name is 'comment'
comment on table table_name is 'comment'
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)