发布网友 发布时间:2022-05-05 02:21
共2个回答
热心网友 时间:2022-05-05 03:51
select A.aid ,A.tableid,t.name
热心网友 时间:2022-05-05 05:09
跟A表没关系追答SELECT t.*,A.ages FROM
(SELECT * FROM B
UNION SELECT * FROM C
UNION SELECT * FROM D
ORDER BY aid) AS t //把之前的结果作为一个表 和A表做连接查询
JOIN A ON A.aid = t.aid