Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: pl sql

Re: pl sql

From: bhogak <bhogak_at_yahoo.com>
Date: Mon, 19 Nov 2001 22:00:51 -0600
Message-ID: <9tcg8a$b7r$1@bob.news.rcn.net>


mort wrote:

> I am wondering how to write a pl sql statement that will do 2 things
> find duplicates in a file based on 1 column. I want to write all
> duplicates to one table then put all non duplicates into another table
> in the same script

a. File size is small:
 Read each line from the file and store all the columns as a row in a pl/sql table.
 Once you are done reading the file, take the first element and compare with the first column of all the remaining rows. b. File size is big:
  Do the above, but instead of storing in a pl/sql table, create a temp table.

-- 
bhogak
Received on Mon Nov 19 2001 - 22:00:51 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US