“把查询sc表和更新sc表的grade列的权限受予用户user1”的正确SQL语句是()。
第1题:
设有关系模式:SC(sno,cno,grade),各属性含义依次是学号、课程号、分数。将关系SC中所有选修课程号为‘DB’的学生的分数增加10分,正确的SQL命令是
A.ALTER TABLE SC SET GRADE+10 WHERE CNO=’DB’
B.ALTER TABLE SC SET GRADE=GRADE+10 WHERE CNO=’DB’
C.UPDATE SC SET GRADE+10 WHERE CNO=’DB’
D.UPDATE SC SET GRADE=GRADE+10 WHERE CNO=’DB’
第2题:
已知关系模式:sc(sno, sname, grade),各属性含义依次为学号、课程名、分数。要查找“数据库”课分数最高的学生的学号,正确的SQL语句是
A.SELECT sno FROM sc WHERE sname="数据库" AND grade=MAX(grade)
B.SELECT sno FROM sc FOR sname="数据库" OR grade>=MAX(grade)
C.SELECT sno FROM sc WHERE sname="数据库" AND grade=(SELECT MAX(grade) FROM sc
D.SELECT sno FROM sc FOR sname="数据库" OR grade=(SELECT MAX (grade) FROM sc
第3题:
( 35 ) “ 把查询 sc 表和更新 sc 表的 grade 列的权限授予用户 user1 ” 的正确 SQL 语句是
A ) GRANT SELECT , UPDATE ( grade ) ON TABLE sc TO user1
B ) GRANT SELECT sc , UPDATE sc . grade TO user1
C ) GRANT SELECT , UPDATE ON TABLE sc . grade TO user1
D ) GRANT SELECT ON TABLE sc , UPDATE ON TABLE sc(grade) TO user1
第4题:
已知学生选课信息表:sc(sno,cno,grade)。查询“至少选修了一门课程,但没有学习成绩的学生学号和课程号”的SQL语句是
A.SELECT sno,cno FROM sc WHERE grade=NULL
B.SELECT sno,cno FROM sc WHERE grade IS‘’
C.SELECT sno,cno FROM sc WHERE grade IS NULL
D.SELECT sno,cno FROM sc WHERE grade=‘’
第5题:
( 3 2 )查询学生姓名及其所选修课程的课程号和成绩,正确的 SQL 语句是
A ) SELECT S . SNAME , SC.C# , GRADE FROM S WHERE S . S # = SC . S#
B ) SELECT S . SNAME , SC.C #, GRADE FROM SC WHERE S . S # = = SC . S#
C ) SELECT S . SNAME , SC.C# , GRADE FROM S , SC WHERE S . S# = SC . S#
D ) SELECT S . SNAME , SC.C# , GRADE FROM S , SC WHERE S .S# = SC . C#
第6题:
检索学生姓名及其所选修课程的课程号和成绩,正确的SELECT语句是______。
A.SELECT S.SN,SC.C#,SC.GRADE FROMS WHERE S.S#=SC.S#
B.SELCECT S.SN,SC.C#,SC.GRADE FROM SC WHERE S.S#=SC.GRADE
C.SELECT S.SN,SC.C#,SC,GRADE FROM S,SC WHERE S.S#:SC.S#
D.SELSECT S.SN,SC.C#,SC.GRADE FROM S,SC
第7题:
“把查询sc表和更新sc表的grade列的权限授予用户stul的正确SQL语句是__________。
第8题:
将查询SC表的权限授予用户U1,并允许该用户将此权限授予其他用户。实现该功能的 SQL语句是______。
A.GRANT SELECT TO SC U1 WITH PUBLIC
B.GRANT SELECT ON SC TO U1 WITH PUBLIC
C.GRANT SELECT TO SC ON U1 WITH GRANT OPTION
D.GRANT SELECT ON SC TO U1 WITH GRANT OPTION
第9题:
“把查询SC表和更新SC表的9rade列的权限受予用户userl”的正确SQL语句是( )。
A) GRANT SELECT, UPDATE (grade) ON TABLE sc TO userl
B) GRANT SELECT so,UPDATE sc,grade TO userl
C) GRANT SELECT, UPDATE ON TABLE sc.grade TO userl
D) GRANT SELECT ON TABLE sc, UPDATE ON TABLE sc (grade)TO userl
第10题:
“把查询SC表和更新SC表的9rade列的权限授予用户user”的正确SQL语句是( )。
A)GRANT.SELECT sc, UPDATE sc.grade TO user
B)GRANT SELECT, UPDATE (grade) ON TABLE sc TO user
C)GRANT SELECT, UPDATE ON TABLE sc.grade TO user
D)GRANT SELECT ON TABLE sc, UPDATE ON TABLE sc(grade) TO user