【发布时间】:2017-01-28 08:36:27
【问题描述】:
反引号没有错误。
DB [XXX]> create temporary table `123456e6` (`id` char (8));
Query OK, 0 rows affected (0.03 sec)
不使用反引号时出错。
DB [XXX]> create temporary table 123451e6 (`id` char (8));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '123451e6 (`id` char (8))' at line 1
我的标识符 123451e6 根据页面 here 有效,并且不是保留字、空格或包含任何特殊字符。
【问题讨论】:
标签: mysql sql syntax-error mariadb ddl