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 '工資';


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM