MySQL supports the # to end of line and
/* multiple line */ comment
styles.
select 1+1; # This comment is to the end of line select 1 /* in-line-comment */ + 1; select 1+ /* This will be ignored */ 1;
MySQL doesn't support the -- ANSI SQL style comments.
See section -- as start of a comment.
Go to the first, previous, next, last section, table of contents.