您当前位置:编程帮手 > 知识 > 知识 > 数据库 > Oracle > 内容
代码库
2014-06-17 10:41:03 访问(2902) 赞(0) 踩(0)
drop table UTB_SLX_SYSMODEL; -- 系统模块 -- create table UTB_SLX_SYSMODEL ( ID number primary key, -- 系统模块 -- ProjId number not null, -- 所属项目 -- foreign key(ProjId) references UTB_SLX_PROJ(ID), TheName varchar2(255) not null, -- 名称 -- TheCode varchar2(255) not null, -- 代号 -- Remark clob, -- 备注 -- CreateTime date default sysdate not null, -- 创建时间 -- UpdateTime date default sysdate not null -- 修改时间 -- ); --+ [表]UTB_SLX_SYSMODEL:系统模块 |-- comment on table UTB_SLX_SYSMODEL is '系统模块'; --+ ID:系统模块 |-- comment on column UTB_SLX_SYSMODEL.ID is '系统模块'; --+ ProjId:所属项目 |-- comment on column UTB_SLX_SYSMODEL.ProjId is '所属项目'; --+ TheName:名称 |-- comment on column UTB_SLX_SYSMODEL.TheName is '名称'; --+ TheCode:代号 |-- comment on column UTB_SLX_SYSMODEL.TheCode is '代号'; --+ Remark:备注 |-- comment on column UTB_SLX_SYSMODEL.Remark is '备注'; --+ CreateTime:创建时间 |-- comment on column UTB_SLX_SYSMODEL.CreateTime is '创建时间'; --+ UpdateTime:修改时间 |-- comment on column UTB_SLX_SYSMODEL.UpdateTime is '修改时间'; -- 创建[表格:UTB_SLX_SYSMODEL] seq_slx_sysmodel -- CREATE SEQUENCE seq_slx_sysmodel START WITH 1 INCREMENT BY 1 MINVALUE 1 NOMAXVALUE NOCACHE NOCYCLE NOORDER /
上一条:
下一条: