查询被锁的语句组装kill

select concat(‘kill ‘,id,’;’) from information_schema.processlist where user=‘root’ and state=‘Waiting for table metadata lock’;