• 2022-06-07
    查询所有目前年龄不到18岁的学生的姓名、所在班级及年龄,正确的命令是( )。
    A: SELECT StName, ClName,YEAR(GETDATE())-YEAR(birthdate) age FROM StInfo WHERE age<18
    B: SELECT StName,ClName, YEAR(GETDATE())-YEAR(birthdate) FROM StInfo WHERE YEAR(birthdate)<18
    C: SELECT StName, ClName, YEAR(GETDATE())-YEAR(birthdate) ageFROM StInfo WHERE YEAR(GETDATE())-YEAR(birthdate)<18
    D: SELECT StName,ClName, YEAR(date())-YEAR(birthdate) FROM StInfo WHERE age<18
  • 举一反三