《数据库系统概论》实验报告 |
日期 |
2020/12/1 |
|||
题目:数据库的完整性约束 |
姓名 |
|
学号 |
|
|
实验环境: 已安装SQL Server 2005/2008版的计算机 |
|||||
实验内容及完成情况: 1.请将上机题目写于此 2.根据以下要求认真进行实验,记录所有的实验用例。
以系统管理员身份登录到SQL Server服务器,并使用T-SQL语句实现以下操作;
alter table student add constraint sno_pk primary key(Sno)
alter table course add constraint con_pk primary key(Cno)
alter table course add constraint cname_uk unique(Cname)
alter table sc add constraint sc_pk primary key(Sno,Cno)
alter table sc |
数据库的完整性约束
最新推荐文章于 2023-11-23 09:19:03 发布