In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Define the variable declare @ startTime varchar (255)-2. Set the variable set @ startTime = convert (VARCHAR (10), dateadd (day,-1,getdate () +'%'--you can also specify the date to be queried here-- set @ startTime = '2017-04-05% select REPLACE-display the specified date PRINT (@ startTime) select REPLACE (@ startTime,'%','') as date, active users of the day, and new users from (--3.) Query current-day active users select '01' as id,count (1) as current-day active users from (select DISTINCT usId from loginLog t where CONVERT (varchar, t.addTime, 25) like @ startTime) as a) as a2 mai-4. Query new users on the same day (select '01' as id,count (1) as) from userT t where CONVERT (varchar (100), t.addTime, 25) like @ startTime) bwhere a2.id = b.id
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.