home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / oracle / 1116 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.2 KB

  1. Path: sparky!uunet!darwin.sura.net!jvnc.net!netnews.upenn.edu!uofs!jaguar.uofs.edu!littlec1
  2. From: littlec1@jaguar.uofs.edu (Chris Little)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Deleting Duplicates
  5. Message-ID: <1992Jul23.091611.1@jaguar.uofs.edu>
  6. Date: 23 Jul 92 14:16:11 GMT
  7. References: <VN70NB1w165w@iowegia.uucp>
  8. Sender: news@uofs.uofs.edu
  9. Organization: University of Scranton
  10. Lines: 16
  11. Nntp-Posting-Host: jaguar.ucs.uofs.edu
  12.  
  13. In article <VN70NB1w165w@iowegia.uucp>, bob@iowegia.uucp (Bob Powers) writes:
  14. > How can I delete duplicate rows in a table using SQL*PLUS.  This is
  15. > an unindexed table and I would like to keep it that way.
  16.  
  17. I'm relatively new at the job, but I suspect you could create a similar
  18. table, do an INSERT SELECT UNIQUE from the old table to the new table,
  19. delete all rows from the old table, copy all rows from the new table
  20. to the old, and then drop the new one.  Maybe there's a better way.
  21.  
  22. Good Luck.
  23.  
  24. --
  25. Chris Little, Programmer/DBA
  26.                                                 University Computing Systems
  27.                                                 University of Scranton
  28.   LITTLEC1@JAGUAR.UOFS.EDU                      Scranton, PA 18510
  29.