A: WHERE年龄>32AND年龄<45
B: WHERE年龄>=32AND年龄<45
C: WHERE年龄>32AND年龄<=45
D: WHERE年龄>=32AND年龄<=45
举一反三
- 与WHERE 年龄 BETWEEN 32 AND 45 语句等价的子句是( )。 A: WHERE 年龄 >32 AND 年龄 B: WHERE 年龄>=32 AND 年龄 C: WHERE 年龄>32 AND 年龄 D: WHERE 年龄>=32 AND 年龄
- 与WHERE<br/>年龄 BETWEEN 32 AND 45 语句等价的子句是(<br/>)。A.WHERE 年龄<br/>>32<br/>AND 年龄<45 A: WHERE年龄>=32<br/>AND 年龄 B: WHERE年龄>32<br/>AND 年龄 C: WHERE年龄>=32<br/>AND 年龄
- 将表STUD中性别为“男”的学生的“年龄”加2,能实现此功能的语句是______。 A: SELECT年龄+1 FROM STUD WHERE性别=“男” B: ALTER STUD年龄WITH年龄+1 WHERE性别=“男” C: UPDATE STUDSET年龄=年龄+1 WHERE性别=“男” D: UPDATE STUD年龄WITH年龄+1 WHERE性别=“男”
- 查询比计算机系某个学生年龄小的其他系的学生姓名,正确的SQL语句是(9)。 A: Select 姓名 From S where 年龄 B: Select 姓名 From S where 年龄 C: Select 姓名 From S where 年龄 D: Select 姓名 From S where 年龄
- 查询学生表(学号,姓名,性别,年龄,所在系)中,年龄最大的女生的姓名,年龄(包括并列的结果)。以下正确的查询语句是( )。 A: select 姓名, 年龄 from 学生表 where 性别='女' and 年龄=max( 年龄 ) B: select top 1 with ties 姓名, 年龄 from 学生表 where 性别='女' order by 2 desc C: select top 1 with ties 姓名, 年龄 from 学生表 where 性别='女' order by 年龄 desc D: select top 1 with ties 姓名, 年龄 from 学生表 where 性别='女' order by 年龄
内容
- 0
从student表删除年龄大于=30的记录的正确SQL命令是( )。 A: DELETE FOR年龄>30 B: DELETE FROM student WHERE年龄>30 C: DELETE student FOR年龄>30 D: DELETE student WHERE年龄>30
- 1
选择语句中,where条件语句是where 年龄 between 10 and 12,可以转化为()。
- 2
从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
- 3
查询"学生"表中年龄大于18岁,性别是女生的学生所有信息 A: select * from 学生 where 年龄>;18 B: select * from 学生 where 年龄<;18and 性别="女生" C: select * from 学生 where 年龄>;18and 性别="女生"
- 4
有学生表,其结构为: student(学号, 姓名, 性别, 年龄), 查询所有年龄小于等于18岁的女同学、并按年龄降序排序生成新的表stud,正确的SQL命令是______。 A: CREATE TABLE stud AS SELECT * FROM student WHERE 性别='女' AND 年龄<;=18 ORDER BY 年龄; B: CREATE TABLE stud AS SELECT * FROM student WHERE 性别='女' AND 年龄<;=18 ORDER BY '年龄' DESC; C: CREATE TABLE stud AS SELECT * FROM student WHERE 性别='女' AND 年龄<;=18 ORDER BY '年龄' ASC; D: CREATE TABLE stud AS SELECT * FROM student WHERE 性别='女' AND 年龄<;=18 ORDER BY 年龄 DESC;