1、2.在数据库中定义这些关系模式,并向基本表中插入如下数据:CREATE table Students(Sno char(11) primary key,Sname char(20),Sage int,sdept char(20)create table Courses(Cno char(4),Cname char(40),Ccredit int,Ctime int,Cpno char(4),primary key (cno),Foreign key (Cpno) references Courses(Cno)create table SC(Sno char(11),Cno char(4),Gr
2、ade int,primary key(Sno,Cno),foreign key(Sno) references Students(Sno),foreign key(Cno) references Students(Cno)insert into Students values (20123841,赵一,21,计算机)20123842赵二,22,电子20123843赵三,23,通信20123844赵四,24,自动化20123845赵五,25,软件20123846赵六,26,数学20123847赵七,27,物联网20123848赵八,28,生物20123849赵九,29,20123840赵十,2
3、0,机械insert into Courses values (0000数据库,4,60,null)0001C语言0002C+语言0003JAVA0004数据结构0005高数0006离散数学0007计算原理,4,60,0008算法设计0009文本0010信息安全insert into SC values (,1),2),3),4)3.插入相应的数据,试着插入重复的元组,结果如何?输入重复数据:4.在已建立的关系模式之上(已插入一些数据)建立主键约束,参照约束和用户定义的约束(要求学生年龄不小于14岁,不大于35岁),如果约束不能建立,请分析原因,修改后建立上述约束。alter table Students add check(Sage=14 and Sage=18 and Sage8011.求计算机系每个学生的姓名,选修的