데이타베이스/MSSQL
[MSSQL] 프로시져 실행결과 페이징 하기
로드러너
2020. 12. 17. 17:30
DECLARE @tempTable TABLE
(
[컬럼명1] 데이타타입
, [컬럼명2] 데이타타입
)
insert into @tempTable
(
[컬럼명1]
, [컬럼명2]
)
exec 프로시저명 파라미터1, 파라미터2
select * from @tempTable
order by [컬럼명1]
offset 0 rows fetch next 10 rows only;