processlist

select concat('KILL ',id,';') from information_schema.processlist WHERE `TIME`>100 AND INFO LIKE '%purchaseplan%';

原文地址:https://www.cnblogs.com/nowphp/p/14133285.html