“把查询sc表和更新sc表的grade列的权限受予用户user1”的正确SQL语句是______。
A: GRANTSELECT,UPDATE(grade)ONTABLEscTOuser1
B: GRANTSELECTsc,UPDATEsc,gradeTOuser1
C: GRANTSELECT,UPDATEONTABLEs
D: gradeTOuser1
E: GRANTSELECTONTABLEsc,UPDATEONTABLEsc(grade)TOuser1
A: GRANTSELECT,UPDATE(grade)ONTABLEscTOuser1
B: GRANTSELECTsc,UPDATEsc,gradeTOuser1
C: GRANTSELECT,UPDATEONTABLEs
D: gradeTOuser1
E: GRANTSELECTONTABLEsc,UPDATEONTABLEsc(grade)TOuser1
举一反三
- “把查询sc表和更新sc表的grade列的权限受予用户user1”的正确SQL语句是()。 A: GRANT SELECT, UPDATE(gradON TABLE sc TO user1 B: GRANT SELECT sc, UPDATE sc, grade TO user1 C: GRANT SELECT, UPDATE ON TABLE s grade TO user1 D: GRANT SELECT ON TABLE sc, UPDATE ON TABLE sc(grad TO user1
- “把查询SC表和更新SC表的grade列的权限授予用户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
- 设表SC中存放了学生的学号(Sno)、课程号(Cno)和成绩(Grade),现需要查询选修1号课程的学生平均成绩,下面SQL语句正确的是()。 A: SELECTGrade(AVG) FROM SC WHERE Cno=’1’ B: SELECTGrade(AVG) FROM SC WHERE Sno=’1’ C: SELECTAVG(Grade) FROM SC WHERE Sno=’1’ D: SELECTAVG(Grade) FROM SC WHERE Cno=’1’
- 下面SQL命令的作用是( )。GRANT UPDATE(grade) ON SC TO U4WITH GRANT OPTION A: 把对表SC的grade列的UPDATE权限授予U4用户 B: 把对表SC的grade列的UPDATE权限授予U4用户,并允许他再将此权限授予其他用户 C: 把对表SC的UPDATE权限授予U4用户
- 更新student表id=1的记录,name值更新为”youjun”,grade值更新为98.5,下列选项中,能够完成上述功能的SQL语句是 A: UPDATE student set name=’youjun’ grade=98.5 where id=1; B: UPDATE student set name=’youjun’, grade=98.5 where id=1; C: UPDATE FROM student set name=’youjun’ ,grade=98.5 where id=1; D: UPDATE student Values name=’youjun’ grade=98.5 where id=1;