下面SQL语句使用JDBC方式如何查询出结果集合,并显示在页面上?求大神帮帮忙! 100
select*from((selectcount(*)fromft_subjectwhere(logintime>='2016-08-1800:00:00'andlogi...
select * from ((select count(*) from ft_subject where (logintime>='2016-08-18 00:00:00' and logintime<='2016-08-18 23:59:59')) as tmp1),((select count(distinct(userid)) from ft_subject where (logintime>='2016-08-18 00:00:00' and logintime<='2016-08-18 23:59:59')) as tmp2),((select count(*) from ft_freewatchaccount where (login_time>='2016-08-18 00:00:00' and login_time<='2016-08-18 23:59:59')) as tmp3),((select count(distinct(userid)) from ft_freewatchaccount where (login_time>='2016-08-18 00:00:00' and login_time<='2016-08-18 23:59:59')) as tmp4),((select count(pvid),t2.entrancename from lt_pvlog t1,ft_entrancesigns t2 where t1.signid=t2.signid and (t1.createtime>='2016-08-18 00:00:00' and t1. createtime<='2016-08-18 23:59:59')) as tmp5);
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询