Reputation: 21
Here is the one i'm using: https://github.com/mybatis/mybatis-dynamic-sql/tree/master I've been stuck here for quite a while and don't know why. When using groupBy and ‘where OR having’ has a filter,there will be some error as below. And only pure groupBy without 'where or having' filter , it will be ok. But you know fitlers are quite necessary. So anybody helps me.
SQL in the first photo works in navicat, and the next dynamic SQL is absoulutely the same, but error.
Only comment the code in {}, otherwise will be wrong. Wish can query data with 'where & having' filters.
Upvotes: 0
Views: 90