select * from AA01@dbhr left join AAR4@dbhr on AA01@dbhr.ZA0100=AAR4@dbhr.ZA0100 left join AA04@dbhr on AAR4@dbhr.ZA0100=AA04@dbhr.ZA0100 and AAR4@dbhr.ZC9993=1)
比如AA01@dbhr.ZA0100,给AA01@dbhr起别名,加括号都不可以,应该如何写
建2个视图啊,然后给视图加别名。一个视图负责连接一个dblink。或者懒点就写子查询,如
select v1.* from (select * from AA01@dbhr) v1 left join select v2.* from (select * from AAR4@dbhr) v2
on v1.XX = v2.XX
left join 后面有问题,报错 表名无效