zoukankan      html  css  js  c++  java
  • 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 'where id = 2' at line 8

    字典管理修改接口测试传了id后出现: 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 'where id = 2' at line 8

    百度翻译:您的SQL语法有错误;请查阅与您的MySQL服务器版本相对应的手册,以获得在第8行“where id=2”附近使用的正确语法。

    百度解决方案:查看其中一条博客说是这个错误是本质是mysql数据库报的错,所以你java也好,php也好报错都是mysql反溃给控制台的。所以去dao.xml中查看sql语句语法.

    果然多了个逗号

    尝试解决第一次:去掉逗号并重启

    然后就不报刚才那个错误了,换了一个..

  • 相关阅读:
    修改表结构
    enum/set 约束
    MYSQL 数据类型
    表和数据的基础操作
    存储引擎
    mysql
    HTML 介绍
    selor模块
    select
    协程
  • 原文地址:https://www.cnblogs.com/LearnSB/p/11101229.html
Copyright © 2011-2022 走看看