Access创建表

2014-06-17 10:43:44  访问(3818) 赞(0) 踩(0)

drop table UTB_SLX_SYSMODEL;
 
-- 系统模块 --
create table UTB_SLX_SYSMODEL
(
	ID				long  primary key,				-- 系统模块 --
	ProjId			long  not null foreign key references UTB_SLX_PROJ(ID), -- 所属项目 --
	TheName			nvarchar(255)	not null,			-- 名称 --
	TheCode			nvarchar(255)	not null,			-- 代号 --
	Remark			ntext,								-- 备注 --
	CreateTime		date default now() not null, -- 创建时间 --
	UpdateTime		date default now() not null  -- 修改时间 --
);
  

-- 创建[表格:UTB_SLX_SYSMODEL] seq_slx_sysmodel -- 
insert into utb_sys_dual values 
    (
        'seq_slx_sysmodel',1,now(),now()
    );



标签:Access    建表脚本    SQL脚本 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)
 
  ┈全部┈  
 
(显示默认分类)