mysql 合并查询,把两张或多张没有关系的表合起来查询并且排序

1
select * from (select 排序字段  as time ,其他字段 from 表一 union select  排序字段  as time ,其他字段 from 表二) as c order by time desc;

  

posted on   迷途行者  阅读(795)  评论(0编辑  收藏  举报

努力加载评论中...

导航

点击右上角即可分享
微信分享提示