2012年1月13日
摘要: Mysql:select * from tableName limit 参数1,参数2Mysql的分页使用Limit,第一条记为0limit 参数1,参数2参数1,从第几条开始参数2,返回多少条数据Oracle:第一种:select * from(select * t.*,Rownum rn from(select * from tableName) twhere rn <=参数2)where rn >=参数1第二种:select * from ( select t.*, Rownum rn from (select * from tableName) t ) where rn b 阅读全文
posted @ 2012-01-13 10:44 lzycc 阅读(147) 评论(0) 推荐(0)