Home  >  Article  >  Database  >  Oracle 、MySql分页 举例

Oracle 、MySql分页 举例

WBOY
WBOYOriginal
2016-06-07 17:13:211011browse

三重循环 select mbid00,mbmc00, llurl0,cfwz00,mbsltp,sycs00,lrsj00 from ( select mbid00,mbmc00, llurl0,cfwz00,mbsltp,sy

三重循环

select mbid00,mbmc00, llurl0,cfwz00,mbsltp,sycs00,lrsj00 from (
  select mbid00,mbmc00, llurl0,cfwz00,mbsltp,sycs00,lrsj00,rownum as con from (
    select * from JZ_MBXXB0 where 1=1 and lbid00=
    '201'
    order by lrsj00)
     where rownum     10
     ) where con>=
     1

在hibernate + Mysql 方式

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn