MySQL 语法错误: insert into tbl_dictionary_type 导致数据库更新失败
这个错误是在更新数据库时出现的。原因是SQL语法错误,错误信息是'你在SQL语法中有一个错误,请检查与你的MySQL服务器版本相对应的手册,查看第3行附近的语法'。错误发生在'D:\idea.2022\crm-root\Mapper\target\classes\mapper\DictionaryTypeMapper.xml'文件中的defaultParameterMap处。在设置参数时发生了错误。具体的SQL语句是'insert into tbl_dictionary_type(code, name, description) values (uuid(), , )'。造成这个错误的原因也是SQL语法错误,错误信息是'你在SQL语法中有一个错误,请检查与你的MySQL服务器版本相对应的手册,查看第3行附近的语法'。这是一个坏的SQL语法。嵌套异常是java.sql.SQLSyntaxErrorException: 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 '\n )' at line 3的错误,这也是一个SQL语法错误。
原文地址: https://www.cveoy.top/t/topic/pd4J 著作权归作者所有。请勿转载和采集!