string strSQL = string.Format(@"select * from( with temp as (select * from * where {0} order by CREATE_TIME DESC)
                                                select (select count(1) from temp) total_row, temp.* from temp where rownum = 1 union all
                                                select * from (select rownum total_row,temp.* from temp where rownum <= {2})  where total_row > {1})", strWhere, (pageindex - 1) * pagesize, pageindex * pagesize);

posted on 2017-06-06 14:10  ftk0  阅读(1257)  评论(0)    收藏  举报