2017-04-04 64 views
0

得到错误的ORA-00905:缺少关键字位置laravel 4.1laravel在使用别名得到错误加入4.1

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

- > leftjoin(' 表2如DEP ' 'dep.portid', '=', 'ordertable.departure')

- > leftjoin( '表2如ARR',' ','=','ordertable.arrival')

在使用别名加入2(table2为dep)和3(table2 as arr)出现错误时,有人可以让我知道我必须使用的位置,我是否正确使用语法V4.1

+0

相同查询工作作品我在5.2 :( – fernandus

回答

0

只需将其删除工作

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

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

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