MySQL 連線工具mysql中的語句註釋方法

feelpurple發表於2016-09-13
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部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2124900/,如需轉載,請註明出處,否則將追究法律責任。

相關文章