• 2022-06-15
    使用SQL语句将学生表S中年龄(AGE)大于30岁的记录删除,正确的命令是()
    A: DELETE FOR AGE>30
    B: DELETE FROM S WHERE AGE>30
    C: DELETE S FOR AGE>30
    D: DELETE S WHERE AGE>30
  • B

    内容

    • 0

      若要删除基本表S中的Age列,应该选用的SQL语句是( )。 A: DELETE Age FROM S B: ALTER TABLE DROP Age C: UPDATE S Age D: ALTER TABLE S ‘Age’

    • 1

      从student表删除年龄大于30的记录的正确SQL命令是 A: A) DELETE FOR 年龄>30 B: B) DELETE FROM student WHERE 年龄>30 C: C) DELETE student FOR 年龄>30 D: D) DELETE student WHERE 年龄>30

    • 2

      从student表删除年龄大于30的记录的正确SQL命令是______。 A: DELETE FOR年龄>30 B: DELETE FROM student WHERE年龄>30 C: DELETE student FOR年龄>30 D: DELETE student WHILE年龄>30

    • 3

      假定有学生关系S,结构为S(SID, SNAME, AGE),其中SID为学号,SNAME为姓名,AGE为年龄。查询所有比“李军”年龄大的学生的姓名、年龄,正确的SQL语句是( )。 A: SELECT SNAME, AGE FROM S WHERE AGE > ( SELECT AGE FROM S WHERE SNAME = '李军' ) B: SELECT SNAME, AGE FROM S WHERE AGE >( SNAME= '李军' ) C: SELECT SNAME, AGE FROM S WHERE AGE > ( SELECT AGE WHERE SNAME='李军' ) D: SELECT SNAME, AGE FROM S WHERE AGE>李军.AGE

    • 4

      从student表删除年龄大于30的记录的正确SQL命令是 A: DELETE FOR年龄>30 B: DELETE FROM student WHERE年龄>30 C: DEL ETE student FOP年龄>30 D: DELETE student WF IERE年龄>30