In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Next, let's learn about the data generation in excel through mysql. I believe you will benefit a lot after reading it. The text is not much in essence. I hope you want to achieve the data generation in excel through mysql.
5. Data extraction
The fifth part is data extraction, which is also the most common work in data analysis. The use of each function is described below.
Extract data by column
# extract SELECT city FROM data1 by column
Extract data by row
# extract SELECT * FROM data1 WHERE city='beijing' by line
Extract data by location
# extract SELECT * FROM data1 LIMIT 2 by location 5
Extract data according to conditions
# extract and calculate SELECT AVG (price) FROM data1 WHERE city='beijing' AND age30 conditionally
# data filtering INSELECT * FROM data1 WHERE city IN ('shanghai','beijing')
# data filtering ORSELECT * FROM data1 WHERE city='shanghai' OR age > 30
# data filtering (not equal) SELECT * FROM data1 WHERE city! = 'beijing'
# data filtering like (fuzzy filtering) SELECT * FROM data1 WHERE city LIKE 'bei%'
# count after filtering countifSELECT COUNT (id) AS id_count FROM data1 WHERE city='shanghai'AND age > 30
# summing sumtifSELECT SUM (price) AS price FROM data1 WHERE city='beijing' AND age after filtering
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.