MySQL 错误 #1064
好的。我几乎阅读了所有内容,但找不到问题的答案。我不明白出了什么问题。它一直给我#1064 - 你的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,了解在第 2 行 ')' 附近使用的正确语法
CREATE TABLE users (
);
Okay. I have read through almost everything, except I cannot find the answer to my problem. I don't get what's wrong.. It keeps giving me #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 ')' at line 2
CREATE TABLE users (
);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您尚未在表中定义任何列。
You haven't defined any columns in your table.
我刚刚经历过,在创建表查询中,当您提到主键时,您不会收到错误。否则您会收到错误。这是一次奇怪的经历。我们尝试一下
您必须提供至少一列。这将是你的主钥匙。
I have just experienced that in create table query when you mention primary key then you don't get an error. Otherwise you are receiving error. This is a strange experience. well try this
You must provide at least one column. And that would be your primary key.
还需要定义一个引擎吗?
You also need to define a engine?
第二个错误 1113 是否回答了您的问题?
更多详细信息可以在这里找到 http://dev.mysql.com /doc/refman/5.1/en/create-table.html
Does the second error 1113 answer your query?
Further details can be found here http://dev.mysql.com/doc/refman/5.1/en/create-table.html
另一种可能是您没有选择数据库:
Another possible is that you did't choice database: