MySQL annotation?
#1

Is it possible to create a comment inside a MySQL query?
Reply
#2

Just tried it, apparently not. Since the query is a string.
Reply
#3

Why would you need to do that, exactly?
Reply
#4

Yep, you add comments before the query (but it gets removed while in query preparation process) though it's viewable in logs.
Reply
#5

You can use:

# comment
-- comment
/*
multi line
comment
*/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)