当前位置:网站首页>SQL: SELECT t.`app_ code`, SUM(t.`success_num`) AS success_ num, SUM(t.`
SQL: SELECT t.`app_ code`, SUM(t.`success_num`) AS success_ num, SUM(t.`
2022-07-21 14:56:00 【YOUNG. K】
SQL: SELECT t.`app_code`, SUM(t.`success_num`) AS success_num, SUM(t.`failure_num`) AS failure_num, SUM(t.`success_total_time`) AS success_toatl_time FROM ds_api_call_total t WHERE t.'app_code' = ? GROUP BY t.`app_code
### 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 ''app_code' = 'yzt_slt'
GROUP BY t.`app_code' at line 6
The reason for this mistake is that I will directly sqlyog The query statement is directly copied to mybatis In file ( Why sqlyog Well , Because the Security Assistants inside the company are not allowed to use NaviCat, It's ridiculous )
So the error message displays :t.`app_code`, SUM(t.`success_num`) AS success_num, SUM(t.`....
Also with Single quotation marks Of
resolvent : Just delete the single quotation mark .
So there's no problem . This error report is not very common , But also essential tips .
If this article helps you , One click and three links, please 【 Happy 】
边栏推荐
- From fail to pass, what did DDR debugging go through?
- 金仓数据库KingbaseES数据库管理员指南--15.2. 管理序列
- Supermarket order management system based on SSM framework +mysql [source code + document +ppt]
- 从fail到pass,DDR调试到底经历了什么?
- Audience analysis and uninstall analysis have been comprehensively upgraded, and HMS core analysis service version 6.6.0 has been updated
- 金仓数据库 KingbaseES SQL 语言参考手册 (3.5. 格式模型、3.6. 空值、3.7. 注释)
- [C language] file related operations
- node的模块化
- 代码实现求二叉树结点数和叶子结点数(C语言)
- 力扣解法汇总1260-二维网格迁移
猜你喜欢
Recommendation Book Evolutionary Psychology: the mystery of magic behind Liu Genghong and Wang Xinling
Win64 驱动内核编程-31.枚举与删除映像回调
Recruit | "one brain cloud research circle" recruit new members
Pycharm input cursor suddenly thickens
leetcode:407. 接雨水 II
王炸动力 创富快人一步!祥菱大熊猫2.0动力产品正式上市
Win64 驱动内核编程-31.枚举与删除映像回调
PyCharm 输入光标突然变粗了
【LeetCode】29、 两数相除
When the microstrip line is pulled open for 7h, you feel very stable?
随机推荐
do-while 怎么调用编写的 odps sql 呢?
【硬件基础4】二极管(原理、特性、类型、电路分析)
nacos集群搭建
Qt Opengl 给两个立方体设置两中不同颜色
Full stack development practice | complete tutorial of SSM framework integration
Recommendation Book Evolutionary Psychology: the mystery of magic behind Liu Genghong and Wang Xinling
金仓数据库KingbaseES数据库管理员指南--12模式对象的管理
效率低?响应慢?报表工具痛点及其解决方案
solana上使用Rust进行合约开发
Advanced Mathematics (Seventh Edition) Tongji University exercises 3-1 personal solutions
乱用“端接”,信号扑街
Intel汇编语言程序设计学习-第五章 过程-上
SAP 电商云 Spartacus UI Store 相关的设计明细
Contract development using rust on Solana
[JS] console command you don't know
Kindergarten tuition comparison
金仓数据库KingbaseES数据库管理员指南--18数据库作业调度
node的path路径模块
[untitled]
JSR303介绍及使用