在access中支持2个以上left join的方法

    技术2022-05-19  22

    http://www.cnblogs.com/jacktu/archive/2008/01/13/1037358.html

     

    今天在做基于 access数据库项目中,做外连接时,发现Access不支持两个以上的 left join 在网上查一下,有哥们说每个 left join 要加 ()    在修改之前(不能执行,ms sql 里执行以通过)       select table1.fildes1, table1.fildes2,table2.fildes1, table2.fildes2,table3.fildes1, table3.fildes2  fromtable1 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


    最新回复(0)