How can i write in MySQL
with temp as (select id from examples JOIN examples2 ON ... )
UPDATE orders SET value = 0 WHERE orders.id IN (select id from temp)
Imagine a huge subquery whose result is stored in temp and then used for further query and updates.
In MySQL with temp is not supported. How can I achieve the same result?