MySQL中使用函数时,与后面括号不能之间不能根空格
2024-10-21 12:57:51
修改前代码:
select MAX (article_order)
from mall_school_article
where 1=1
and is_deleted = 0
and status = 1
and article_type = #{articleType,jdbcType=TINYINT}
and section = #{section,jdbcType=TINYINT}
报错:FUNCTION dev_operation.MAX does not exist
原因:mysql在使用函数查询时,函数名后面不能加空格
修改后代码:
select MAX(article_order) as
from mall_school_article
where 1=1
and is_deleted = 0
and status = 1
and article_type = #{articleType,jdbcType=TINYINT}
and section = #{section,jdbcType=TINYINT}
最新文章
- JDBC数据库1
- 开源 XFControls , 用于 Xamarin.Forms 的自定义控件集
- September 7th 2016 Week 37th Wednesday
- Node.app – 用于 iOS App 开发的 Node.js 解释器
- 传染病控制(codevs 1091)
- office 2016 专业增强版 和 visio 2016 专业版 下载安装(附带激活工
- 我的wordpress插件总结
- EXTJS 3.0 资料 控件之 combo 用法
- svn :Can't connect to host *.*.*.*': 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
- stack 集合栈计算机 (摘)
- CF 319C(Kalila and Dimna in the Logging Industry-斜率DP,注意叉积LL溢出)
- JQ在光标处插入文字
- eclipse 导入gradle引入多模块项目,引入eclipse后变成了好几个工程
- CentOS7编译安装SVN(subversion1.9.7)
- mac os下不同工具go env下gopath显示不同
- crm --- 1.admin , 展示列表 和 分页
- sublime使用手册
- css引入外部字体使网站字体更美观
- redis学习(四)redis事务
- javascript php 数组 json 对比 总结
热门文章
- node.js通过iconv-lite完成gbk字符解码例子
- App installation failed (A valid provisioning profile for this executable was not found)
- 【tensorflow基础】ubuntu-tensorflow可视化工具tensorboard-No dashboards are active for the current data set.
- Web服务器、应用程序服务器、web应用服务器、反向代理服务器
- 西门子PLC1200内使用SCL实现简化版PID算法
- logrotate 切割日志
- Java设计模式之:单例模式
- 谷歌浏览器调试swoole长连接方法
- /x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'错误
- JMeter进行Apache Kafka负载测试