laravel在连接4.1

时间:2017-04-04 10:37:42

标签: laravel laravel-4

以ORA-00905获取错误:在laravel 4.1中缺少关键字位置

  

- > leftjoin( '表1', 'table1.portid', '=', 'ordertable.order_id')

     

- > leftjoin('table2 as dep','dep.portid','=','ordertable.departure')

     

- > leftjoin('table2 as arr','arr.portid','=','ordertable.arrival')

使用别名连接2(table2 as dep)和3(table2 as arr)获取错误,Can Someone让我知道我必须使用的地方,我是否正确使用语法V4.1

1 个答案:

答案 0 :(得分:0)

只需删除其作品

  

- &GT; leftjoin(&#39;表1&#39;&#39; table1.portid&#39;,&#39; =&#39;&#39; ordertable.order_id&#39)< / p>

->leftjoin('table2 dep','dep.portid','=','ordertable.departure')

->leftjoin('table2 arr','arr.portid','=','ordertable.arrival')