`
johnny0331
  • 浏览: 1299 次
  • 性别: Icon_minigender_1
  • 来自: 南京
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
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 oracle: --前10行 select * from table where rownum <= 10; --第5到10行 select * from table where rownum<10 minus ...
select * from 表名 limit m,n; 其中m是记录的索引(index),从0开始的,代表第一行,可以不写。 例如: select * from t_wind limit 3; 也就是从第一行开始查询三行记录(包括第一行)。
Global site tag (gtag.js) - Google Analytics