Reply to comment

Oracle: Duplikate in einer Datenbanktabelle entfernen

So entfernt man Duplikate in einer Oracle-Datenbanktabelle mit Hilfe von "Analytical SQL": delete from tabelle where rowid in (select rowid from (select rowid, row_number() over (partition by feld1,feld2 order by feld1, feld2) dup from tabelle ) where dup > 1);

Reply

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post PHP code. You should include <?php ?> tags.

More information about formatting options