jjzjj

myothertable

全部标签

php - 如何使用 Laravel 查询生成器跨表选择多个列?

我有一个LaravelEloquent查询,我试图从MySQL表中选择多个列。$query=DB::connection('global')->select('mytable.id','mytable.column1','mytable.another_column','mytable.created_at','myothertable.id)->from('mytable')->get();看起来select()函数接受三个参数:query、bindings和useReadPdo。上面的查询给我一个错误:{"error":true,"message":"Typeerror:Argum