gpt4 book ai didi

php - 如何调试 MySQL 语法错误#1064?

转载 作者:行者123 更新时间:2023-11-29 05:11:16 25 4
gpt4 key购买 nike

我非常感谢您的帮助。导入数据库时​​出现此错误:

1064 - 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 ')'

这是给出错误的代码:

CREATE TABLE `c9soa_assets` (
`id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
`parent_id` int(11) NOT NULL DEFAULT '0'COMMENT
) ;

最佳答案

您需要在最后一条 COMMENT 之后指定一条评论,或者将其删除。

关于php - 如何调试 MySQL 语法错误#1064?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39073824/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com