ITPub博客

首页 > 数据库 > MySQL > MySQL 连接工具mysql中的语句注释方法

MySQL 连接工具mysql中的语句注释方法

原创 MySQL 作者:feelpurple 时间:2016-09-13 17:09:17 0 删除 编辑
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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-08-01

  • 博文量
    404
  • 访问量
    1673977