今天在做基于
access数据库项目中,做外连接时,发现
Access不支持两个以上的
left
join 在网上查一下,有哥们说每个
left
join 要加 ()
在修改之前(不能执行,ms sql 里执行以通过)
select table1.fildes1, table1.fildes2,table2.fildes1, table2.fildes2,table3.fildes1, table3.fildes2 from
table1
left
join table2 on table1.fildes1= table2.fildes1
left
join table3 on table1.fildes1= table3.fildes1
修改之后(执行通过) 每个
left
join 要加 ()
select table1.fildes1, table1.fildes2,table2.fildes1, table2.fildes2,table3.fildes1, table3.fildes2 from
((table1
left
join table2 on table1.fildes1= table2.fildes1)
left
join table3 on table1.fildes1= table3.fildes1
在access中支持2个以上left join的方法,又是access的变态规则
最新推荐文章于 2021-05-31 17:15:42 发布