转自:https://blog.csdn.net/haha_66666/article/details/78444457
Query : select * from order LIMIT 0, 1000
Error Code : 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 ‘order LIMIT 0, 1000’ at line 1

今天在查询数据的时候遇到这个错误,特别的郁闷,感觉自己写的sql语句没有问题啊,但就是提示我的sql语法错误,后来终于找到了原因

该错误一般出现在表名或字段名设计的过程中出现了mysql关键字导致的。

如果你用了mysql中的关键字做字段,当你查询的时候可以用 `把 order 来括起来

这个 `并不是单引号,而是数字那一行键的最左边的那个键,注意要在在英文状态下输入,用它把关键字括起来就可以解决这个问题。

Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My相关推荐

  1. 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 ...

  2. [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 ...

  3. 数据库工作笔记005---You have an error in your SQL syntax; check the manual that corresponds to y

    JAVA技术交流QQ群:170933152 Query : select * from order LIMIT 0, 1000 Error Code : 1064 You have an error ...

  4. 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 ...

  5. 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 ...

  6. sql语句异常 You have an error in your SQL syntax; check the manual that corresponds to your.......

    我们在写sql时可能会遇见: You have an error in your SQL syntax; check the manual that corresponds to your-类似这种开 ...

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

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

  8. 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 ...

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

    使用 MySql 建表出现的问题 在使用 Navicat Premium 运行 sql 语句进行建表时,MySQL 报错如下: 建表语句: DROP DATABASE IF EXISTS javawe ...

最新文章

  1. 第二阶段团队项目冲刺第六天
  2. Android微信小程序原理,微信小程序事件流原理解析
  3. python 神经网络中隐藏层的作用是什么?
  4. HTML--猫眼电影---浮动练习
  5. 科普 | CPU 是如何工作的?
  6. java timer 定时任务
  7. windows oracle 内存大,如何设计Oracle数据库内存的大小
  8. django之分页、cookie装饰器
  9. 若依集成ip2region实现离线IP地址定位
  10. 2016 版 Laravel 系列入门教程(三)【最适合中国人的 Laravel 教程】
  11. c/c++ 内存对齐
  12. 系统架构设计-项目管理
  13. 各种最短路算法能够处理的情况(优劣比较,时间复杂度等)
  14. php为图片平铺文字水印
  15. 用python批量修改图片尺寸
  16. 1.1版走迷宫小游戏(C++)
  17. js 移动端 下载 doc文件
  18. 火狐浏览器的下载安装
  19. 战略游戏——树形dp+状态机——没有上司的舞会翻版
  20. C语言用不同字体标识,c语言中标识符命名规则是怎样的

热门文章

  1. 从 RequireJs 源码剖析脚本加载原理
  2. getFullYear 方法
  3. 数据解析(XML,JSON)
  4. Java-Android 之Hello World
  5. 【Java 集合】ArrayList、LinkedList、Stack、Queue、Set、Map, 迭代器 Iterable、Iterator,Collections类
  6. 【恋上数据结构】回溯、剪枝(八皇后、n皇后)、LeetCode51.N皇后、LeetCode52.N皇后 II
  7. 配置node.js默认的npm安装目录
  8. jq使用教程02_安装的问题
  9. 决策树之C4.5(详细版终结版)
  10. 一个代码都不用敲的可视化大屏,一口气把工具和模板都送给你