摘要: 基本介绍约束(Constraint): 约束是SQLServer提供的自动保持数据库完整性的一种方法,定义了可输入表或表的单个列中的数据的限制条件。SQL Server中的 5 种约束: 主键约束(primary key) 外键约束(foreign key) 唯一约束(unique) 检查约束(check) 缺省确属(default)新建数据表: create table 表名(字段名,字段类型,[not null] [primary key] [unique] [check(...)] [default(...)]) 新建完整性: create table TempTaba... 阅读全文
posted @ 2013-03-06 13:31 一切都是幸福叻 阅读(406) 评论(0) 推荐(0) 编辑