您好,欢迎来到爱go旅游网。
搜索
您的当前位置:首页查询一个月最后一天的总用户数,数据库中没有保存最好一天的数据

查询一个月最后一天的总用户数,数据库中没有保存最好一天的数据

来源:爱go旅游网

select total_user from a_user_no where date_time=(select max(date_time) from a_user_no where ‘2013-05’ '=to_char(date_time,‘yyyy-mm’)); 通过max 函数来去5月份出现最大日期的数据

select total_user from a_user_no where date_time=(select max(date_time) from a_user_no where
‘2013-05’+ "'=to_char(date_time,‘yyyy-mm’));

通过max 函数来去5月份出现最大日期的数据

Copyright © 2019- igat.cn 版权所有 赣ICP备2024042791号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务