举一反三
- 中国大学MOOC: 年龄在18~23岁之间的SQL条件语句除了用“WHERE AGE BETWEEN 18 AND 23”外,与其完全等价的还可以是 。
- 与WHERE AGE BETWEEN 18 AND 23完全等价的是() A: WHERE AGE>18AND AGE<23 B: WHERE AGE>=18AND AGE<23 C: WHERE AGE>18AND AGE<=23 D: WHERE AGE>=18AND AGE<=23
- SQL语言中,条件年龄 BETWEEN 18 AND 30表示年龄在18至30之间,且
- 有学生信息表student,求年龄在20-22岁之间(含20岁和22岁)的学生姓名和年龄的SQL语句是: SELECT sname,age FORM student WHERE age 【18】
- 查询年龄不在20到23岁之间的学生的信息,所使用的语法命令为() A: select * from student where age not between 20 and 23 B: select * from student where age between 20 and 23 C: select * from student where age not between 20 to 23 D: select * from student where not age from 20 to 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;