我有以下查询成功产生结果。但是,结果是连续的,我想按两个表中名为的列对它们进行排序clicks
(SELECT women_id, title, body FROM women ORDER BY women_id DESC LIMIT 5)
UNION ALL
(SELECT man_id, title, body FROM man ORDER BY man_id DESC LIMIT 5)
现在它给出了这样的结果:
women 41124
women 124
women 12
women 2
women 1
men 3455434
men 1233
men 135
men 23
men 1
我需要它给出这样的最终结果:
men 3455434
women 41124
men 1233
men 135
women 124
men 23
women 12
women 2
women 1
men 1