Hi there!
I would like to construct a SQL query which would kill all active queries on a specific database.
SELECT ID, NODE_ID
FROM information_schema.mv_processlist
WHERE DB = ‘test’ AND STATE = ‘executing’;
This query nicely returns all the ids I should be using in the KILL QUERY query, but I can not find a way to feed them into it in one step.
I’d appreciate any kind of help on this.
Thanks!