MySQL- 错误 1064 (42000)

标签 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>

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

最佳答案

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

explain `interval`;

应该是这样的。 感谢@ypercube

关于MySQL- 错误 1064 (42000),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17158420/

相关文章:

mysql - 使用 MS Access Union Query 合并 3 个表/查询

按日期排序时,MySQL 数据库使用 "Using where; Using temporary; Using filesort"

mysql - 选择最大日期,即使它为空?

mysql - Laravel 3 - Eloquent save() 一遍又一遍地保存错误的值

mysql - 无法将 J2EE 连接到 MySQL

mysql - 有条件触发

mysql - 如何从数据库中提取图像 URL 并填充元标记

python - SQLAlchemy group_concat 有序值

php - 服务器上的 SQL 查询返回 SQL 错误,而在本地主机上工作正常

php - 有没有办法在插入 MYSQL 时通知用户成功/错误?