先將前N個結果取出當成temp1臨時表單 然後倒序後 再取出其中的第一筆 就是本來資訊的第N筆了
SELECT TOP 1 * FROM
(
SELECT TOP N *
FROM biz
ORDER BY biz_id ASC
)
temp1
ORDER BY biz_id DESC
SELECT TOP 1 * FROM
(
SELECT TOP N *
FROM biz
ORDER BY biz_id ASC
)
temp1
ORDER BY biz_id DESC
1 意見:
張貼留言謝謝分享…很有幫助的訊息
張貼留言