开发者

What is equivalent statement of DBCC INPUTBUFFER(@@SPID)(which give sql statement for current connection otr specified connection) in MYSQL?

开发者 https://www.devze.com 2022-12-14 08:02 出处:网络
What is the MySQL equivalent statement of DBCC INPUTBUFFER(@@SPID), which lists the sql statement for current connection 开发者_如何转开发or specified connection?Use SHOW PROFILES to see a list of the

What is the MySQL equivalent statement of DBCC INPUTBUFFER(@@SPID), which lists the sql statement for current connection 开发者_如何转开发or specified connection?


Use SHOW PROFILES to see a list of the most recent statements sent to MySQL:

SHOW PROFILES;

If you want/need to see currently running queries, use SHOW PROCESSLIST:

SHOW FULL PROCESSLIST;

The FULL keyword means the list will include queries from all clients, not just the one you are running the command on.

0

精彩评论

暂无评论...
验证码 换一张
取 消