1、java实现动态创建union语句
2、sql使用$动态添加
select b.createTime,b.userId from
(select a.create_time createTime,count(a.user_id) userId from t_user_test a group by a.create_time
${unionState}
)b
group b.createTime
3、将unionState将传递给sql
1、java实现动态创建union语句
2、sql使用$动态添加
select b.createTime,b.userId from
(select a.create_time createTime,count(a.user_id) userId from t_user_test a group by a.create_time
${unionState}
)b
group b.createTime
3、将unionState将传递给sql