- 博客(2)
- 资源 (7)
- 收藏
- 关注
原创 Sql server(TOP) oracle(rownum) MySQL(limit)
Sql server: --前10行 select top 10 * from table --31到40行,这里ID是主键,必须得有主键,才能使用这种方法分页 select top 10* from table where(id not in(select top 30 id from table order by id))order by id oracl...
2011-11-04 09:49:22 74
原创 MySQL分页基础
select * from 表名 limit m,n; 其中m是记录的索引(index),从0开始的,代表第一行,可以不写。 例如: select * from t_wind limit 3; 也就是从第一行开始查询三行记录(包括第一行)。...
2011-11-03 23:26:27 63
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人