1. 首页
  2. 文档大全

oracle删除重复内容Oracle删除重复内容.doc

上传者:小健 2022-06-20 21:08:23上传 DOC文件 84 KB
oracle删除重复内容(Oracle删除重复内容)
In normal work, you may encounter an attempt to create a unique index on a column or column in a library table. System prompt ora-01452: no unique index can be created and duplicate records found.
The principle of deleting duplicate records:
in Oracle, each record has a ROWID, and the ROW ID is unique throughout the database. ROWID determines which data file, block, or row on which each record is in the oracle.
in repeated records, all columns may have the same contents, but the ROW ID will not be the same, so as long as the ROWID is the largest in the duplicate record, the rest will be deleted.
As a Oracle database developer, you often need to create indexes for columns or columns of some tables, providing direct fast access to rows. But when you create, you often encounter such hints:
ORA-01452: you cannot create unique indexes and find duplicate records.
The Oracle system hints that a unique index cannot be created on the table because duplicate records are found in the system discovery table. A unique index can be created only if the duplicate record is found in the table and the record is deleted. Here, in table table name, three different methods are introduced to determine duplicate records in a library table.
[b] 1. [/b] [b] uses the grouping function to find duplicate rows [/b] [b] in a table
[/b] makes it easy to identify duplicat

oracle删除重复内容Oracle删除重复内容


文档来源:https://www.taodocs.com/p-690370459.html

文档标签:

下载地址