qq_29551899
2020-05-17 19:12现在需要在一个mybatis的select标签内同时查询多张表的数据,要怎么写啊?
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};
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 现在需要在一个mybatis的select标签内同时查询多张表的数据,要怎么写啊?
- oracle
- mysql
- java-ee
- 1个回答
- 如何使用LEFT JOIN mysql从另一个表派生count(*)
- sql
- mysql
- php
- 2个回答
- 关于Duplicate column name 'XXX'的不解
- mysql
- 2个回答
- SpringBoot+MybatisPlus2.x版本里面多表查询需要写XML吗
- java
- intellij-idea
- java-ee
- spring
- tomcat
- 1个回答
- springmvc+mybatis中的使用Dao查询失败
- java
- spring
- maven
- eclipse
- 5个回答
换一换