MySQL Tips & Tricks

Friday, August 29, 2008

3 Types of MySQL Comments

mysql> SELECT 1+1; # This comment continues to the end of line

mysql> SELECT 1+1; -- This comment continues to the end of line

mysql> SELECT 1 /* this is an in-line comment */ + 1;

mysql> SELECT 1+ /*
this is a
multiple-line comment
*/

1;

0 Comments:

Post a Comment



<< Home