Mybaties 的sql语句无法使用聚合函数的解决办法

来源:互联网 发布:mathcad怎么求解矩阵 编辑:程序博客网 时间:2024/06/05 08:11

1.在xml中配置sql语句报错:

select  id,create_time,max(update_time)from form

2.将聚合函数放入子集中即可:

selec  id,create_time,update_timefrom (select id,create_time,max(update_time)as update_time from form group by create_time) tmp

原创粉丝点击