摘要:
sql server中有五种约束使用sql语句创建和删除约束主建约束:(primary key constraint);外建约束:(foreign key constraint);唯一约束:(unique constraint);检查约束:(check constraint);默认约束:(default constraint);**********************************************************************添加约束:alter table tablenameadd constraint pk_colname primary key(c 阅读全文