前台Ext后台ibatis 数据库分页
ORACLE:
SELECT * FROM (SELECT A* ROWNUM RN FROM 表名 A WHERE 字段名 LIKE (%||#字段名#||%) ORDER BY $orderBy$ $orderType$) WHERE RN>#start# AND RN<=#start#+#limit#
SQLSERVER
select top $limit$ * FROM 表名 WHERE id not in(SELECT TOP $start$ id FROM 表名 ORDER BY $orderBy$ $orderType$) ORDER BY $orderBy$ $orderType$