摘要:
--按3条分一页,查询出第2页select * from (select u.*,rownum rn from tab_user u where rownum<=2*3) where rn>(2-1)*3rownum <= (2(页数)*3(条数)) rn > ((2(页数)-1)页数-1)*3(条 阅读全文
摘要:
需求是这样的,页面有个table,有一列的上下箭头可点击并排序。对于这种需求,我的mybatis.xml的sql配置写成了如下: <if test="map.ColumnNameSort!=null and map.ColumnNameSort!=''"> ORDER BY columnName # 阅读全文