数据库原理-西安电子科技大学出版社
姓名:陈俊昌
班级:10923337
杭州电子科技大学计算机学院
11
1)给学生表增加一属性Nation(民族),数据类型为varchar(20)
alter table Student
add nation varchar(20)
2)删除学生表中新增的属性nation
alter table Student
drop column nation
3)向成绩表中插入记录(“2001110”,“3”,80)
insert into Grade(Sno,Cno,Gmark)
values ('2001110','3',80)
4)将学号为“2001110”的学生成绩修改为70分
update Grade
set Gmark=70
where Sno='2001110'
5)删除学号为“2001110”的学生成绩记录
delete from Grade
where Sno='2001110'
6)在学生表的clno属性上创建一个名为ix_class的索引,以班级号的升序排序
create index ix_class
on student(clno)
7)删除ix_class索引
drop index student.ix_class
12.
1)找出所有被学生选修了的课程号