我滴个乖乖
This commit is contained in:
28
ZelWiki.Repository/Scripts/GetAllExceptionsPaged.sql
Normal file
28
ZelWiki.Repository/Scripts/GetAllExceptionsPaged.sql
Normal file
@@ -0,0 +1,28 @@
|
||||
SELECT
|
||||
Id,
|
||||
[Text],
|
||||
[ExceptionText],
|
||||
[StackTrace],
|
||||
[CreatedDate],
|
||||
|
||||
@PageSize as PaginationPageSize,
|
||||
(
|
||||
SELECT
|
||||
CAST((Count(0) + (@PageSize - 1.0)) / @PageSize AS INTEGER)
|
||||
FROM
|
||||
[Exception] as P
|
||||
) as PaginationPageCount
|
||||
FROM
|
||||
[Exception]
|
||||
--CUSTOM_ORDER_BEGIN::
|
||||
--CONFIG::
|
||||
/*
|
||||
Id=Id
|
||||
CreatedDate=[CreatedDate]
|
||||
*/
|
||||
--::CONFIG
|
||||
ORDER BY
|
||||
Id
|
||||
--::CUSTOM_ORDER_BEGIN
|
||||
LIMIT @PageSize
|
||||
OFFSET (@PageNumber - 1) * @PageSize
|
||||
Reference in New Issue
Block a user