若依代码生成的一个大坑 You have an error in your SQL syntax; check the manual that corresponds to your MySQL s
2024-10-20 13:51:01
报错如下所示:显示我的xml文件的SQL语句有错
### Error querying database. Cause: 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 'declare from ass_api ) tmp_count' at line 2
### The error may exist in file [C:\Users\20102\Desktop\RuoYi-Vue-master\ass_server\target\classes\mapper\server\AssApiMapper.xml]
### The error may involve com.ruoyi.server.mapper.AssApiMapper.selectAssApiList-Inline
### The error occurred while setting parameters
### SQL: select count(0) from ( select id, project_name, module_name, api_type, data_type, request_data, code, creater, create_time, declare from ass_api ) tmp_count
### Cause: 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 'declare from ass_api ) tmp_count' at line 2 ; bad SQL grammar [];
nested exception is 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 'declare from ass_api ) tmp_count' at line 2
经过仔细检查发现我的map文件的sql语句有一处的字段名称和sql语句关键词重名了,所以导致报错
详细如下图所示:
最新文章
- HTML5 meta最全使用手册
- 你好,欢迎来到我的博客,我是博主royalmice1
- CSS中盒子模型和position(一)
- 比较不错的JS 曲线图
- MySQL数据库备份还原(基于binlog的增量备份)
- [Android应用]《花界》V1.0 正式版隆重发布!
- 深入浅出畅谈Zigbee
- ipv6加英文的中括号访问
- Java经典23创意模式设计模式(两)
- 老李推荐:第6章5节《MonkeyRunner源码剖析》Monkey原理分析-事件源-事件源概览-事件
- 每天一个JS 小demo之商品筛选。主要知识点:DOM方法综合运用
- 6. VIM 系列 - 全局搜索(ctrlsf.vim)
- 所有HTTP请求参数及报文查看SERVLET【原】
- 深入对比TOML,JSON和YAML
- urlparse基本运用
- ";prefs:root"; or ";App-Prefs:root";
- Indepence Mode 备份 weblogic
- ASP.NET Identity 修改表名和主键类型
- 分布式网上商城项目-solr搜索功能错误
- CWinApp类CMultiDocTemplate类CDocument类CView类的关系
热门文章
- linux系统漏洞lynis扫描
- ShardingSphere-proxy-5.0.0企业级分库分表、读写分离、负载均衡、雪花算法、取模算法整合(八)
- C++20 以 Bazel &; Clang 开始
- Kubuntu安装字体
- 可落地的DDD(7)-战术设计上的一些误区
- 难道ERP"死了",中台"凉了",低/无代码要称王了?
- Spring基础入门
- kube-scheduler的调度上下文
- linux 判断变量是否相等方法
- 『叶问』#41,三节点的MGR集群,有两个节点宕机后还能正常工作吗