sql--分页
摘要:
createprocsp_proInfo_paging(@pageSizeint=7,@pageNoint=1)asbegindeclare@totalCountintset@totalCount=(selectCOUNT(*)fromPROJECT_INFO)if@pageNo>CEILING(@totalCount*1.0/@pageSize)beginset@pageNo=@pageNo%@pageSizeif@pageNo=0beginset@pageNo=1endend;withtempas(selectROW_NUMBER()over(orderbyp.PROJECT_ID) 阅读全文
posted @ 2013-02-03 16:48
Amity
阅读(130)
评论(0)
推荐(0)
浙公网安备 33010602011771号