如何選擇後ArticleId
特定的偏移量開始PostgreSQL的偏移特定列
e.g start from 28 get 28, 27, 26
offset = 28;
limit = 3;
var query = 'SELECT * FROM "Article" ORDER BY "PublishDate" DESC LIMIT $2 OFFSET $1';
ArticleId | PublishDate
25 | "2015-08-19 15:33:37"
26 | "2015-08-19 17:05:42"
27 | "2015-08-19 17:06:05"
28 | "2015-08-19 17:06:22"
29 | "2015-07-19 17:06:46"
30 | "2015-08-19 17:08:11"
開始從26:26抵消限3 –
無論28 ArticleId'的'基於'PublishDate'或'條款ArticleID的價值秩序' –
@ ArticleId的印度值 – user1775888