I am trying to combine these two queries in twisted python:
SELECT * FROM table WHERE group_id = 1013 and time > 100;
and:
This is really late to the party, but I had this same problem, and the solution I found most helpful was the following:
SET @uids := null;
UPDATE footable
SET foo = 'bar'
WHERE fooid > 5
AND ( SELECT @uids := CONCAT_WS(',', fooid, @uids) );
SELECT @uids;
from https://gist.github.com/PieterScheffers/189cad9510d304118c33135965e9cddb