JAVA技术交流QQ群:170933152

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` 来括起来,这个 ` 并不是单引号,

而是数字那一行键的最左边的那个键,在英文状态下的才为 ` ,

用它把关键字括起来就可以解决这个问题

--------------------- 本文来自 haha_66666 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/haha_66666/article/details/78444457?utm_source=copy

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

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

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

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

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

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

  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. 已解决EROR 1064 (42000): You have an error in. your SOL syntax. check the manual that corresponds to yo

    已解决EROR 1064 (42000): You have an error in. your SOL syntax. check the manual that corresponds to yo ...

最新文章

  1. PHP分页代码实例教程
  2. 基于CentOS 搭建 Seafile 专属网盘
  3. 采用HttpModules来重写URLs(实践篇)
  4. mongodb 1安装,开启
  5. SDK,JDK,API的区别
  6. php+中午截取,PHP_php字符串截取中文截取2,单字节截取模式,//中文截取2,单字节截取模式 - phpStudy...
  7. linux最简单搭建邮件服务器
  8. Faster\Slower 快慢指针的应用
  9. bzoj1684[Usaco2005 Oct]Close Encounter*
  10. 华科一篇 20 年前硕士论文,「神预言」深圳赛格大厦晃动?导师回应
  11. printf输出字符串_c语言入门 第十二章 字符串
  12. 华为交换机做qos案例_景区视频监控交换机如何选?信锐安视交换机给您答案
  13. 【实践】面向广告主的猜你喜欢推荐与B端用户增长实践.pdf(附下载链接)
  14. c语言 获取可用内存大小,C语言实现获取内存信息并输出的实例
  15. Java 接口(interface)的三种类型
  16. 前端web:响应式网站开发的现状你了解吗?
  17. 开发环境搭建好,也要做镜像
  18. 小型超市网上购物系统开发项目总结
  19. 四年的自学,通过这些学习工具拿到了大厂offer,分享给大家
  20. 概率分布 ---- 泊松分布

热门文章

  1. 学了这么久的Redis,竟然还不知道事务
  2. Tensorflow学习之 卷积神经网络 (一)什么是卷积?
  3. 刷新tabpanel中的子项目内容
  4. Python基础----集合
  5. BMC之ipmitool 命令收集
  6. 常用的 Windows 键
  7. Character Studio
  8. 启动tomcat后无法访问
  9. 关于coredump文件生成与查看
  10. 将数据库中一张表中数据复制到另一张表