下面选项中,查询student表中id值不在2和5之间的学生的SQL语句是( ) A. SELECT * FROM student where id!=2,3,4,5; B. SELECT * FROM student where id not between 5 and 2; C. SELECT * FROM student where id not between 2 and 5; D. SELECT * FROM student where id not in 2,3,4,5;
要想分页(每页显示10条)显示test表中的数据,那么获取第2页数据的SQL语句是( ) A. SELECT * FROM test LIMIT 10,10; B. SELECT * FROM test LIMIT 11,10; C. SELECT * FROM test LIMIT 10,20; D. SELECT * FROM test LIMIT 11,20;
下面选项中,代表匹配任意长度字符串的通配符是( ) A. % B. * C. _ D. ?
下面选项中,用于求出表中某个字段所有值的总和的函数是( ) A. AVG() B. SUM() C. MIN() D. MAX()
下列选项中,可以查询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=‘女’;