这是我在使用单行注释时使用的内容(使用-)。错误1064(42000):您的SQL语法有错误;实际上,我在一个程序中使用这些注释来显示一条线的功能。然后我直接在mysql命令行中检查,但是我得到了这个错误。Mysql在这里不支持单行注释。这是什么原因?
mysql> select 1;--test select
+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)
-> ;
check the manual that corresponds to your MySQL server version for the right syntax to use near '--test select' at line 1
Do I need to configure any file to support this. It is working fine, If I use Multi-line comments(Using /*something*/).
我用Google搜索,并通过MySQL文档去的,因为它表明我,它supoppots(-)。 什么可能是错误?