select concat('KILL ',id,';') from information_schema.processlist where user='dbaas_t2' into outfile '/tmp/a.txt';
source /tmp/a.txt;
source /tmp/a.txt;
本文介绍了如何使用SQL语句进行复杂操作,并将其结果导出到文件中,具体实例包括KILL命令、INFORMATION_SCHEMA过程列表查询及结果输出。

被折叠的 条评论
为什么被折叠?