method

join_to_update

Importance_1
v3.2.1 - Show latest stable - 0 notes - Class: AbstractMysqlAdapter
join_to_update(update, select) public

In the simple case, MySQL allows us to place JOINs directly into the UPDATE query. However, this does not allow for LIMIT, OFFSET and ORDER. To support these, we must use a subquery. However, MySQL is too stupid to create a temporary table for this automatically, so we have to give it some prompting in the form of a subsubquery. Ugh!

Show source
Register or log in to add new notes.