mysql> SELECT 1+1; # This comment continues to the end of line
+-----+
| 1+1 |
+-----+
| 2 |
+-----+
1 row in set (0.01 sec)
mysql> SELECT 1+1; -- This comment continues to the end of line
+-----+
| 1+1 |
+-----+
| 2 |
+-----+
1 row in set (0.00 sec)
mysql> SELECT 1 /* this is an in-line comment */ + 1;
+--------+
| 1 + 1 |
+--------+
| 2 |
+--------+
1 row in set (0.00 sec)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26506993/viewspace-2124900/
,如需转载,请注明出处,否则将追究法律责任。