Oracle创建表,并添加默认值和备注

create table testemp(
id varchar2(50) default sys_guid(),
deptno varchar2(20) ,--部门编码
ename varchar2(20),--人名
sal number(10)--工资 )

----表名描述
comment on table testemp is '测试专用表';
----字段备注
comment on column testemp.deptno is '部门编码';
comment on column testemp.ename is '人名';
comment on column testemp.sal is '工资';

posted @ 2018-03-12 15:19  小痞子Yang  阅读(8698)  评论(0编辑  收藏  举报