2
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>

我可以解释所有其他表,除了这个。我该如何编写插入命令语句。谢谢

4

1 回答 1

11

间隔是 MySQL 的一个特殊名称。我们不能用正常的创建语句来创建它。

explain `interval`;

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

于 2013-08-09T08:29:36.203 回答