通過多個列
在您的情況下,您想先先按最高評分對文章進行排序,然後再按最近的日期。 Use the following query:ORDER BY article_rating DESC, article_time DESCThis will produce the following output:
ORDER BY article_rating DESC, article_time DESC============= ============================================== | Article_rating |文章| Article_time | ================================================== === ========== | 50 |本文搖滾| 2009年2月4日| -------------------------------------------------- ------------------------------ ------------------- | 35 |本文很好| 2009年2月1日| -------------------------------------------------- ------------------------------ ------------------- | 5 |本文不那麼熱| 2009年1月25日| ================================================== === ========
免責聲明: 提供的所有資源部分來自互聯網,如果有侵犯您的版權或其他權益,請說明詳細緣由並提供版權或權益證明然後發到郵箱:[email protected] 我們會在第一時間內為您處理。
Copyright© 2022 湘ICP备2022001581号-3