通过多个列
在您的情况下,您想先先按最高评分对文章进行排序,然后再按最近的日期。 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