Posts: 686
Threads: 29
Joined: Feb 2011
Reputation:
0
Is it possible to create a comment inside a MySQL query?
Posts: 807
Threads: 10
Joined: Jan 2013
Reputation:
0
Just tried it, apparently not. Since the query is a string.
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Why would you need to do that, exactly?
Posts: 1,003
Threads: 31
Joined: Jul 2013
Reputation:
0
Yep, you add comments before the query (but it gets removed while in query preparation process) though it's viewable in logs.
Posts: 1,020
Threads: 38
Joined: May 2011
Reputation:
0
You can use:
# comment
-- comment
/*
multi line
comment
*/