Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Support for 'using' clause in mysql join
  • Just wanted to see if there was any plan to add mysql's USING as an option to the select/join query builder:
    $query = DB::select()->from('users'); // Join a table
    $query->join('profiles');
    $query->using('user_id');
    To create: SELECT * FROM `users` JOIN `profiles` USING `user_id` Is this the best place for something like this, or is it better to create some code and a pull request, seems like it would be a pretty simple addition

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!