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;