MySQL-错误1064(42000)

时间:2013-06-17 23:20:56

标签: mysql

mysql> use j****
Database changed
mysql> show tables;
Database setup was all right

+---------------------+
| Tables_in_j******** |
+---------------------+
| fos_user            |
| goal                |
| goal_type           |
| industry            |
| interval            |
| target              |
| user                |
+---------------------+
7 rows in set (0.11 sec)

mysql> explain interval;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'inter
val' at line 1
mysql>

我可以解释除了这一个之外的所有其他表。如何编写插入命令句子。感谢

1 个答案:

答案 0 :(得分:9)

Interval是MySQL的特殊名称。 我们无法使用正常的创建句子来创建它。

explain `interval`;

它应该是这样的。 感谢@ypercube