SQL Server 2008에 익숙하지 않아서 JSF 페이지의 페이지 매김 논리에 대한 쿼리에 도움이 필요합니다. 나는 사용자가 난 단지 옆에 100 개 개의 레코드를 가져올 필요가 옆에 내 JSF 페이지에서 클릭 지금까지 DB 때에서만 100 개의 레코드를 얻을 필요가 처음으로JSF에서 SQL Server 2008 쿼리 - 페이징
select *
from ShipmentHistory sh
where sh.CCIPortID in ?
order by sh.TrackingNumber, sh.CreateTimeStamp
:
여기 내 쿼리입니다. 계속해서 다음 및 이전 버튼과 같은 페이지의 사용자 클릭 수를 추적합니다.
감사합니다.
"SQL Server 페이지 매김"을 검색하면 [많은] (http://stackoverflow.com/questions/109232/what-is-the-best-way-to-paginate-results-in- SQL Server) [답변] (http://www.codeproject.com/Articles/12338/Using-ROW_NUMBER-to-paginate-your-data-with-SQL-Se) – Andomar