iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >解决:You have an error in your SQL syntax; check the manual that corresponds to your MySQL
  • 274
分享到

解决:You have an error in your SQL syntax; check the manual that corresponds to your MySQL

sqlmysql数据库 2023-09-14 12:09:37 274人浏览 八月长安
摘要

  错误信息为:  check the manual that corresponds to your MySQL Server version for the right syntax       这是之前写的一条 Mysql语句报的 s

  错误信息为:
 check the manual that corresponds to your MySQL Server version for the right syntax

 
 

  这是之前写的一条 Mysql语句报的 sql错误,但是仔细检查 SQL语句没有发现有什么异常问题。

他会提示你再Mapper中的哪句sql语句的周围有语法错误

  解决方法有两个:

  1.在数据库表冲突字段前后加 `符号(Tab键上面那个键),就不会再报语法错误了;

  2.修改数据库表中冲突字段名称,修改为和 SQL语句关键字不冲突的其他名称
 

看了一个小时,发现是自己的列名之间有空格,因为懒得写,复制过来,使用回车是没有影响的

INSERT  INTO t_user(username , passWord , salt ,                    phone , email , gender ,                    avatar ,is_delete ,  created_user ,                    created_time , modified_user ,  modified_time)values (        #{username} , #{password} , #{salt} ,        #{phone} , #{email} , #{gender} ,        #{avatar} ,#{isDelete} ,  #{createdUser} ,        #{createdTime} , #{modifiedUser} ,  #{modifiedTime}        )

来源地址:https://blog.csdn.net/qq_62631818/article/details/126588939

您可能感兴趣的文档:

--结束END--

本文标题: 解决:You have an error in your SQL syntax; check the manual that corresponds to your MySQL

本文链接: https://www.lsjlt.com/news/407223.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作