无法创建表 - 错误 1064 (42000):您的 SQL 语法有错误
我正在尝试执行这个简单的命令:
create table foo
(clo int primary key unsigned auto_increment);
但我收到此错误:
错误 1064 (42000):您遇到错误 在你的 SQL 语法中;检查手册 对应于您的 MySQL 服务器 正确使用语法的版本 靠近“无符号自动增量)” 第 2 行
I'm trying to execute this simple command:
create table foo
(clo int primary key unsigned auto_increment);
But I get this error:
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 'unsigned auto_increment)' at
line 2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我尝试将
int
和unsigned
放在一起,效果很好:I tried putting
int
andunsigned
together and it worked fine:你的语法有点不对劲。试试这个:
Your syntax is a little off. Try this: