您好,登錄后才能下訂單哦!
全文鏈接: https://www.modb.pro/db/23201
SELECT
`post_title`,
`post_date`
FROM
post
WHERE
`post_status` = 'publish'
ORDER BY
view_count desc
LIMIT
5, 5
SELECT
*
FROM
post
WHERE
post_status = 'publish'
ORDER BY
view_count desc
LIMIT
5, 5
SELECT
`post_title`,
`post_date`
FROM
post
WHERE
`post_status` = 'publish'
ORDER BY
view_count desc,
ID asc
LIMIT
5, 5
MySQL 5.5 沒有這個優化,所以也就不會出現這個問題。
(1) SELECT
( 2) DISTINCT <select_list>
( 3) FROM <left_table>
( 4) <join_type> JOIN <right_table>
( 5) ON <join_condition>
( 6) WHERE <where_condition>
( 7) GROUP BY <group_by_list>
( 8) HAVING <having_condition>
( 9) ORDER BY <order_by_condition>
( 10) LIMIT <limit_number>
......
查看全文請點擊文章頂部鏈接
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。