• 2022-05-29
    年龄在18~23岁之间的SQL条件语句除了用“WHERE AGE BETWEEN 18 AND 23”外,与其完全等价的还可以是。
  • where age [=23 and age ]=18###where age >=18 and age <=23

    内容

    • 0

      查询年龄在20到23岁之间的学生的信息,所使用的语法命令为() A: select * from student where age between 20 to 23 B: select * from student where age from 20 to 23 C: select * from student where age between 20 and 23 D: select * from student

    • 1

      在学生表STUD中,查询年龄在20~23岁之间的学生的姓名(XM)、年龄(SA)和所在系(SD),实现该功能的正确SQL语句是______。 A: SELECT XM, SA, SD FROM STUD WHERE BETWEEN 20<SA<23; B: SELECT XM, SA, SD FROM STUD WHERE SA BETWEEN 23 AND 20; C: SELECT XM, SA, SD FROM STUD WHERE SA NOT BETWEEN 20 AND 23; D: SELECT XM, SA, SD FROM STUD WHERE SA BETWEEN 20 AND 23;

    • 2

      在学生表STUD中,查询年龄在20~23岁之间的学生的姓名(XM)、年龄(S A: 和所在系(SD),实现该功能的正确SQL语句是______。A) SELECT XM, SA, SD FROM STUD B: WHERE BETWEEN 20<SA<23; C: SELECT XM, SA, SD FROM STUD D: WHERE SA BETWEEN 23 AND 20; E: SELECT XM, SA, SD FROM STUD F: WHERE SA NOT BETWEEN 20 AND 23; G: SELECT XM, SA, SD FROM STUD H: WHERE SA BETWEEN 20 AND 23;

    • 3

      ‏下列SQL语句,_____________可以在“学生-课程”数据库正确实现“查询年龄在20-23岁(包括20岁和23岁)之间的学生的姓名、系别和年龄”。‍ A: SELECT Sname,Sdept,SageFROM StudentWHERE Sage BETWEEN 20 AND 23 B: SELECT Sname,Sdept,SageFROM StudentWHERE Sage 20 AND 23 C: SELECT Sname,Sdept,SageFROM StudentWHERE Sage >=20 AND <=23 D: SELECT Sname,Sdept,SageFROM StudentWHERE Sage NOT BETWEEN 20 AND 23

    • 4

      在学生表STUD中,查询年龄在20至23岁之间的学生的姓名(XM)、年龄(S A: 和所在系(SD) ,实现该功能的正确SQL语句是______。A) SELECTXM,SA,SD FROM STUD B: WHERE BETWEEN 20B.SELECT XM,SA,SD FROM STUD C: WHERE SA BETWEEN 23 AND 20; D: SELECT XM,SA,SD FROM STUD E: WHERE SA NOT BETWEEN 20 AND 23; F: SELECT XM,SA,SD FROM STUD G: WHERE SA BETWEEN 20 AND 23;