从学生表student查询所有女学生的信息,正确的语句是( )。
A: SELECT
B: FROM student where 性别="女";
C: SELECT * FROM student where 性别="女";
D: SELECT ? FROM student where 性别="女";
E: SELECT FROM student where 性别="女";
A: SELECT
B: FROM student where 性别="女";
C: SELECT * FROM student where 性别="女";
D: SELECT ? FROM student where 性别="女";
E: SELECT FROM student where 性别="女";
举一反三
- 从学生表student查询所有女学生的信息,正确的语句是( )。 A: SELECT B: FROM student where 性别="女"; C: SELECT * FROM student where 性别="女"; D: SELECT ? FROM student where 性别="女"; E: SELECT FROM student where 性别="女";
- 要在student(sno,sname,ssex,sage,sdept)表中,查询全体女生的姓名、年龄,以下正确的查询语句是( )。 A: select * from student where ssex='女' B: select 姓名, 年龄 from student where 性别 ='女' C: select sname , sage from student where ssex='女’ D: select sname 姓名, sage 年龄 from student where ssex='女'
- 用SQL语言描述“在学生表中查找女学生的全部信息”,以下语句中正确的是( )。 A: SELECT FROM学生表IF(性别=’女’) B: SELECT性别FROM学生表IF(性别=’女’) C: SELECT*FROM学生表WHERE(性别=’女’) D: SELECT*FROM性别WHERE(性别=’女’)
- 查询student表中id字段值小于5,并且gender字段值为“女”的学生姓名的SQL语句是() A: SELECT name FROM student WHERE id<;5 OR gender='女'; B: SELECT name FROM student WHERE id<;5 AND gender='女'; C: SELECT name FROM student WHERE id<;5 ,gender='女'; D: SELECT name FROM student WHERE id<;5 AND WHERE gender='女';
- 有学生表,其结构为: 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;