使用 MySql 建表出现的问题

  • 在使用 Navicat Premium 运行 sql 语句进行建表时,MySQL 报错如下:

    建表语句:
    DROP DATABASE IF EXISTS javaweb;
    CREATE DATABASE javaweb DEFAULT CHARACTER SET utf8;
    USE javaweb;CREATE TABLE user(   id int primary key auto_increment,name varchar(20) not null,gender varchar(5),age int,address varchar(32),qq  varchar(20),email varchar(50),username varchar(32),password varchar(32)
    );出现错误提示
    [ERR] 1064 - You have an error in your SQL syntax; check the manual.......

    此问题是 MySql 语法上的错误,在 MySQL 中,为了区分 MySQL 的关键字与普通字符,MySQL 引入了一个反引号。

    在上述的 sql 语句中,列名称没有使用反引号或者列名称使用单引号,都会报这个错误出来。

    DROP DATABASE IF EXISTS javaweb;
    CREATE DATABASE javaweb DEFAULT CHARACTER SET utf8;
    USE javaweb;CREATE TABLE user(   `id` int primary key auto_increment,`name` varchar(20) not null,`gender` varchar(5),`age` int,`address` varchar(32),`qq`    varchar(20),`email` varchar(50),`username` varchar(32),`password` varchar(32)
    );

转载于:https://www.cnblogs.com/miantiao312/p/10753768.html

MySql 建表出现的问题:[ERR] 1064 - You have an error in your SQL syntax; check the manual..........相关推荐

  1. [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL

    1.MySQL建表报错: [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to ...

  2. [Err] 1064 - You have an error in your SQL syntax check the manual that corresponds to 之Mysql报错

    当利用navicat用sql语句建表时候,出现如下报错 从下图我们可以看到,是我们最后一行的末尾多加了一个逗号. 当我们将最后一行的逗号取消掉就正常运行了 特别注意:最后一行的末尾没有逗号. http ...

  3. Error:1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL

    错误代码: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser ...

  4. Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My

    转自:https://blog.csdn.net/haha_66666/article/details/78444457 Query : select * from order LIMIT 0, 10 ...

  5. MySQL建表1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL

    MySQL在导表新建的时候会有索引报错,如下: PRIMARY KEY (`tag_id`) USING BTREE,为导出的SQL语句,但是实际运行时需要改为如下: PRIMARY KEY `tag ...

  6. SQL查询1064报错 [ERR] 1064 - You have an error in your SQL syntax; check the manual.......

    MySQL建表出现1064问题问题 SQL语句 DROP DATABASE IF EXISTS bookstore; DROP DATABASE bookstore; USE bookstore; C ...

  7. Hibernate: You have an error in your SQL syntax; check the manual that corresponds to your MySQL

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version ...

  8. MyBatis中提示:You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser

    场景 在进行MyBatis查询数据时提示: You have an error in your SQL syntax; check the manual that corresponds to you ...

  9. mysql报错系列持续整理1064 - You have an error in your SQL syntax;...near...

    前言 怎么又是这个错,感觉似曾相识之前遇到过多次了.是的这就是mysql语句报错1064 - You have an error in your SQL .syntax;...near...感觉每次不 ...

最新文章

  1. JiBX1.2 处理XML
  2. python mask 添加logo
  3. 字节码中的两个方法init,clinit
  4. Android短信拦截2019,关于征集2019年度信息科学领域重大项目立项建议的通告
  5. c++ cout头文件_C/C++知识分享:C++常用内置函数你会几个,使用过几次呢?
  6. 用 c 写 CGI 程序简要指南
  7. 沟通CTBS助大川集团集中部署K/3系统
  8. ghost之后仍然中病毒----与病毒的斗争
  9. 生态 | 协同办公软件发展任重道远——基于数据库领域视角
  10. 闲置安卓手机改造linux服务器
  11. npm install Error: EACCES: permission denied 问题解决
  12. 【论文阅读】Whisper: Robust Speech Recognition via Large-Scale Weak Supervision
  13. Gradle 2.0 用户指南翻译——第十九章. Gradle 守护进程
  14. 9.2 向量范数的三大不等式
  15. 这几道Python面试题,稳准狠,Python面试题No15
  16. linux TL-WN725N2.0 AP Raspberry Pi 无线网卡驱动 路由设置
  17. Wiz写Blog? 不会再爱了,全面拥抱Markdown+Pandoc
  18. 五笔字型输入规则-温故而知新
  19. 倾斜文档扫描与ocr识别(opencv,坐标变换)
  20. “碳中和”愿景下的智慧灯杆,助力智能交通全链条减碳

热门文章

  1. bash不能运行c语言,解决:无法加载文件 C:\\Program Files\\.. 因为在此系统上禁止运行脚本。...
  2. linux的shell键盘输入,linux shell获取键盘输入
  3. OpenCV-Python实战(23)——将OpenCV计算机视觉项目部署到云端
  4. beanstalkd mysql_beanstalkd 安装和配置
  5. jsp el 表达式_JSP表达式语言– JSP EL示例教程
  6. java文件中获取创建日期_如何在Java中获取文件的上次修改日期
  7. TestNG参数– DataProvider和XML
  8. java mongodb_MongoDB Java Servlet Web应用程序示例教程
  9. 如何编译Linux内核
  10. 人工智能学习该读哪些书籍?