学生表: Student 学生表 ( 学号,姓名,性别,年龄,组织部门 )
Course 课程表 ( 编号,课程名称 )
Sc 选课表 ( 学号,课程编号,成绩 )
表结构如下:
(1). 写一个 SQL语句,查询选修了’计算机原理’的学生学号和姓名
(2). 写一个 SQL语句,查询’周星驰’同学选修了的课程名字
(3). 写一个 SQL语句,查询选修了 5门课程的学生学号和姓名
(1)
select sno,sname
from student
where sno in (
select sno
from sc
where cno = (
select cno
from course
where cname= 计算机原理
)
)
(2)
select cname
from course
where cno in (
select cno
from sc
where sno =
(
select sno
from student
where sname= 周星驰
)
)
(3)
select sno,sname
From student
Where sno in (
select sno
from scgroup by sno having count(sno)=5
)
暂无解析
下列不能使用 ALTER命令进行修改的数据库对象是 ______。
对于索引,正确的描述是 ______。
查看当前正在使用的工作数据库名称的语句是 ______。
数据库系统的核心是 ____。
有下列程序:执行后的输出结果是( )。
fun(int x ,int y)
{ static int m=0 ,i=2;
i+=++rn;rfl —i+x+y;return m;
}
main()
{ int j=l ,m=1,k;
k=fun(j ,m);printf("%d ," ,k);
k=fun(j.m);printf( ”%d n”, k);
}