From a '--' sequence to the end of the line : comments « Introduction « MySQL Tutorial






mysql>
mysql> SELECT 1+1;     -- This comment continues to the end of line
+-----+
| 1+1 |
+-----+
|   2 |
+-----+
1 row in set (0.00 sec)








1.3.comments
1.3.1.From a # character to the end of the line
1.3.2.From a '--' sequence to the end of the line
1.3.3.This syntax allows a comment to extend over multiple lines not be on the same line.
1.3.4./*! MySQL-specific code */