Code代码片断(5do8)

GDI+控件线程IO流ADO.NET接口类,函数语法

新主题
建立 CLR Stored Procedur...
access left join 两个
lucene.net提高查询速度
DataList 页面跳转
OnItemDataBound绑定事件
sql事务执行
SqlParameter添加数据
说话自由

首页 » .NET/C# » ADO.NET »

access left join 两个

标签: access left join
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

ccdot写于2008-10-9 21:21:58

如果愿意,请留下你观点或者感受...
称呼*
内容*
验证码*