摘要: Create table stud (sno char(8) primary key, sname char(4) not null unique, --学生姓名 ssex char(2) default '男' check(ssex='男' or ssex='女'), sage t... 阅读全文
posted @ 2014-11-07 13:43 终于等到你 阅读(478) 评论(0) 推荐(0) 编辑
摘要: insert into student(sno,sname,sage)values ('95030','李莉',18)//插入如下学生记录(学号:95030,姓名:李莉,年龄:18)insert into sc(sno,cno)values('95030',1)//插入如下选课记录(95030,1)... 阅读全文
posted @ 2014-11-07 13:42 终于等到你 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: select student.sno,sname,ssex,sage,sdept,cno,gradefrom student,scwhere student.sno=sc.sno//查询每个学生及其选课情况;select first.cno,second.cpnofrom course first... 阅读全文
posted @ 2014-11-07 13:41 终于等到你 阅读(2104) 评论(0) 推荐(0) 编辑
摘要: 实验三:select sno,sname from student;//(1)查询全体学生的学号和姓名select * from student;//(2)查询全体学生的详细记录select sname,sage,sdept from student where sdept='... 阅读全文
posted @ 2014-11-07 13:30 终于等到你 阅读(4633) 评论(0) 推荐(0) 编辑