select count(1) from tab_1 t where TO_CHAR(t.date,'YYYYMMDD')=#{date};
select count(1) from tab_2 t where TO_CHAR(t.date,'YYYYMMDD')=#{date};
select count(1) from tab_3 t where TO_CHAR(t.date,'YYYYMMDD')=#{date};
select count(1) from tab_4 t where TO_CHAR(t.date,'YYYYMMDD')=#{date};

现在需要在一个mybatis的select标签内同时查询多张表的数据,要怎么写啊?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-