首页 > 代码库 > 多条select语句的合并

多条select语句的合并

1 select 
2 (select count(*) from DW_MARK_FXJS.F_GS_YCXJJDCSY@new_zgxt  where ssq>=201401 and ssq<201701) ,
3 (select count(distinct swglm) from DW_MARK_FXJS.F_GS_YCXJJDCSY@new_zgxt  where ssq>=201401 and ssq<201701) ,
4 (select max(ssq) from DW_MARK_FXJS.F_GS_YCXJJDCSY@new_zgxt )
5 from dual

这样就不用傻傻的执行三次sql了

多条select语句的合并