This post was updated 1228 days ago and some of the ideas may be out of date.
如题
select concat('运行时间',TIME,'s \nSQL:\n',INFO) as msg from INFORMATION_SCHEMA.PROCESSLIST where db = 'xjd' and COMMAND != 'Sleep' and TIME >= 3;
This post was updated 1228 days ago and some of the ideas may be out of date.
select concat('运行时间',TIME,'s \nSQL:\n',INFO) as msg from INFORMATION_SCHEMA.PROCESSLIST where db = 'xjd' and COMMAND != 'Sleep' and TIME >= 3;
每日一句优化sql之慢sql查询
参与讨论