欢迎进入oracle社区论坛,与200万技术人员互动交流 >>进入
前台ext,后台ibatis 数据库分页
oracle:
select * from (select a.* ,rownum rn from 表名 a where 字段名 like ('%'||#字段名#||'%') order by $orderby$ $ordertype$) where rn>#start# and rn
sqlserver 2000:
select top $limit$ * from 表名 where id not in(select top $start$ id from 表名 order by $orderby$ $ordertype$) order by $orderby$ $ordertype$