你这语法不对 union all 不用加括号
select * from A
union all
select * from B
select * from C
或者
关联数据集-https://help.fanruan.com/finereport/doc-view-125.html
select a.*,b.*,c.* from 2022年鸟巢详表 as a
left join
鸟巢详细记录表 as b on a.杆号 = b.杆号
防鸟装置统计表 as c on b.杆号 = c.杆号