In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The following is about the statistics of mysql data according to daily, weekly and monthly groups. the secret of the text is that it is close to the topic. So, let's not talk about gossip. let's read the following directly. I believe you will benefit from reading the mysql data according to daily, weekly and monthly grouping statistics.
According to daily statistics:
Select year (create_datetime), month (create_datetime), day (create_datetime), count (*) from redpacket group by year (create_datetime), month (create_datetime), day (create_datetime)
According to weekly statistics:
Select FROM_DAYS (TO_DAYS (create_datetime)-MOD (TO_DAYS (create_datetime)-2,7)) AS week from redpacket group by week
According to monthly statistics:
Select count (*) from redpacket group by year (create_datetime), month (create_datetime)
For the above statistical mysql data according to daily, weekly and monthly groups, is there anything else you don't understand? Or if you want to know more about it, you can continue to follow our industry information section.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.