报错如下所示:显示我的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语句关键词重名了,所以导致报错

详细如下图所示:



最新文章

  1. HTML5 meta最全使用手册
  2. 你好,欢迎来到我的博客,我是博主royalmice1
  3. CSS中盒子模型和position(一)
  4. 比较不错的JS 曲线图
  5. MySQL数据库备份还原(基于binlog的增量备份)
  6. [Android应用]《花界》V1.0 正式版隆重发布!
  7. 深入浅出畅谈Zigbee
  8. ipv6加英文的中括号访问
  9. Java经典23创意模式设计模式(两)
  10. 老李推荐:第6章5节《MonkeyRunner源码剖析》Monkey原理分析-事件源-事件源概览-事件
  11. 每天一个JS 小demo之商品筛选。主要知识点:DOM方法综合运用
  12. 6. VIM 系列 - 全局搜索(ctrlsf.vim)
  13. 所有HTTP请求参数及报文查看SERVLET【原】
  14. 深入对比TOML,JSON和YAML
  15. urlparse基本运用
  16. "prefs:root" or "App-Prefs:root"
  17. Indepence Mode 备份 weblogic
  18. ASP.NET Identity 修改表名和主键类型
  19. 分布式网上商城项目-solr搜索功能错误
  20. CWinApp类CMultiDocTemplate类CDocument类CView类的关系

热门文章

  1. linux系统漏洞lynis扫描
  2. ShardingSphere-proxy-5.0.0企业级分库分表、读写分离、负载均衡、雪花算法、取模算法整合(八)
  3. C++20 以 Bazel & Clang 开始
  4. Kubuntu安装字体
  5. 可落地的DDD(7)-战术设计上的一些误区
  6. 难道ERP"死了",中台"凉了",低/无代码要称王了?
  7. Spring基础入门
  8. kube-scheduler的调度上下文
  9. linux 判断变量是否相等方法
  10. 『叶问』#41,三节点的MGR集群,有两个节点宕机后还能正常工作吗