sql

SELECT group_concat('kill ', id SEPARATOR';') FROM information_schema.processlist WHERE db = 'XX' AND state = 'Waiting FOR GLOBAL READ LOCK';

你可能感兴趣的:(sql)