In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. table creation
To create a table partition, the partition condition (of timestamp type) must be set to a primary key (required), or the entire table must have no primary key (can be added after partitioning is complete)
or
2. Switch to partition operation interface
3. partition operation
Set general partition conditions
Set partitions that do not satisfy p01 and p02 conditions (similar to the last else in if else if else)
4. Click OK and save at last.
5. look partition
When you open it again, you can see that the conditions of p01 and p02 have become integers (actually timestamps).
6. new
If there is a partition with "LESS THAN MAXVALUE", delete this partition first, and then add a new partition. Note: Deleting a partition will delete the data to which this partition belongs.
View the amount of data in a partition:
select partition_name,partition_description, from_unixtime(partition_description,'%Y-%m-%d') expirydate,table_rowsfrom information_schema.` partitions` where table_name = 't_test';
The above operations can also be done using SQL, you can directly click mysql table partition (according to time) to view
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.