当需要按照子查询结果的id顺序 查询 可以用以下查询
子查询:select id from b order by `order` desc
select * from a where id in(select id from b order by `order` desc) order by field (id,子查询id)
标签:sele 顺序 gpo body order pos blog select div
当需要按照子查询结果的id顺序 查询 可以用以下查询
子查询:select id from b order by `order` desc
select * from a where id in(select id from b order by `order` desc) order by field (id,子查询id)
标签:sele 顺序 gpo body order pos blog select div
原文地址:https://www.cnblogs.com/lauhp/p/8744483.html