mysql 5.7.15 union order by 子查詢排序不生效

其實這麼寫理論上是對的,不少博客教程都是這樣子寫的。。 select * from (SELECT * FROM article WHERE is_top=0 ORDER BY id DESC) as t1 union select * from (SELECT * FROM article WHERE is_top=1 ORDER BY start_time desc) as t2 而後仍是發現
相關文章
相關標籤/搜索