How do you add comments to mysql queries, so they show in logs?

Posted by Yegor on Stack Overflow See other posts from Stack Overflow or by Yegor
Published on 2010-03-16T23:05:35Z Indexed on 2010/03/16 23:11 UTC
Read the original article Hit count: 378

I wanna be able to add a little note, at the beginning of each query, so when I see it in the processlist, or "mytop", I can tell where its running.

Is something like this possible?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about code-comments