查询最近7天的每天的注册人数
select to char(li.create_date,'yyyy-mm-dd') 日期,count(*) 总数
from ptb_login_info li
where li.create_date>=trunc(sysdate)-7
and li.create_date<trunc(sysdate)
group by tochar(li.create_date,'yyyy-mm-dd')
order by tochar(li.create_date,'yyyy-mm-dd')