获取test表中的数据,进行分页(每页显示10条数据),根据上述条件,获取第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: 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
举一反三
- 要想分页(每页显示10条)显示test表中的数据,那么获取第2页数据的SQL语句是 A: select*fromtestlimit10,10; B: select*fromtestlimit11,10; C: select*fromtestlimit10,20; D: select*fromtestlimit11,20;
- MySQL数据库中查询前10条记录的SQL语句是()。 A: select top 10 from table B: select * from table limit 10 C: select * from table limit 1, 10 D: select * from table limit 0, 10
- 下面查询语法错误的是( ) A: select * from table limit 10; B: select * form table limits 10,5; C: select * form table limit 10 offset 4; D: select * from table limit 10,5;
- 在Mysql数据库中,以下哪条语句用于统计test表中的记录总数?() A: select sum(*) from test; B: select max(*) from test; C: select avg(*) from test; D: select count(*) from test;
- 查询主键id从高到低排序的前10条记录的语句是() A: SELECT * FROM table ORDER BY id ASC limit 1,10 B: SELECT * FROM table ORDER id DESC limit 10 C: SELECT * FROM table ORDER BY id DESC limit 10 D: SELECT * FROM table ORDER id ASC limit 1,10