In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Detailed explanation of the method of deduplicating duplicate data in Oracle table
We will definitely encounter a situation in the project, that is, there is no primary key in the table, or there is duplicate data in the table, but some fields have duplicate data, and we need to filter out the duplicate data.
Here is a solution
Delete from mytest ms where rowid in (select aa.rid from (select rowid as rid, row_number () over (partition by s.name order by s.id) as nu from mytest s) aa where aa.nu > 1)
Row_number () over is an analysis function that can get the number of occurrences of the current packet. If there is any repetition, it will add up to 2pr 3pl 4. If we delete anything larger than 1, we can delete it through rowid.
The above is the introduction of Oracle de-duplication methods and simple examples, there are many articles about the database on this site, welcome to search and read, thank you for reading, hope to help you, thank you for your support!
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.