mysql - SQL好友: you have an error in your SQL syntax;

标签 mysql mysql-error-1064 sqlbuddy

您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,了解在第 1 行 'charset utf8 not null auto_increment index key, toId int(11) charset utf8 not ' at line 1

附近使用的正确语法

我在使用 SQLBuddy 接口(interface)创建表时遇到此错误..

follows:
  id (primary key, autoincrement,utf8) - int(11)
  toId (utf8) - int(11)
  fromId (utf8) - int(11)

enter image description here

问题是:为什么?

最佳答案

您可以从 3 个 int 列中删除“utf8”设置吗?

关于mysql - SQL好友: you have an error in your SQL syntax;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9508636/

相关文章:

php - Phalcon PhP - 如何使用参数在 Controller 内执行查询

mysql - 在 phpmyadmin 中查询需要 28 秒,但 mysql 命令行需要 662 秒

php - mysql:如何从一张表中列出2个不同的条件、排序和限制要求?

javascript - 在不重新加载的情况下显示 MySQL 结果... AJAX 失败

MySQL REGEXP 匹配正数

mysql - 错误 1064 (42000) : SQL syntax error

MYSQL使用AS或其他变量查询列

javascript - 解决 Javascript 冲突/jquery

linux - 无法访问nginx服务器上的sqlbuddy

mysql - 如何在 SQL Buddy 中使用外键?