select id,name from (select a.id,a.name from user_1 as a where 1=1 union all select b.id,b.name from user_2 as b where 2=2) as c order by id desc
mysql 多表关联查询数据
最新推荐文章于 2023-04-11 12:43:17 发布
select id,name from (select a.id,a.name from user_1 as a where 1=1 union all select b.id,b.name from user_2 as b where 2=2) as c order by id desc