【发布时间】:2015-10-15 13:14:16
【问题描述】:
我有两个查询,它们每个都有自己的order by,如下所示:
查询1:
SELECT id, name, title, content
FROM table where match(title, content) against('anything')
Order By title
查询1:
SELECT id, tag, question, answer
FROM table
Where tag like '%anything'
Order By tag, question
现在如何使用UNION ALL 组合它们?
【问题讨论】:
-
您希望结果如何排序?
标签: mysql sql sql-order-by union-all