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

Home -> Community -> Usenet -> c.d.o.misc -> Query with contents of text file.

Query with contents of text file.

From: Muggle <zimpany_at_gmail.com>
Date: 24 Apr 2006 09:11:59 -0700
Message-ID: <1145895119.100633.202990@t31g2000cwb.googlegroups.com>


Hello everyone,

I have a text file populated with hundreds of id numbers(one entry per line). Now I want to execute against a database a query in the format "select name, id from employeeTable where id in ({--contents of the text file--})". What is the most effective way of doing this ?

By the way I am calling this from a unix shell script and trying to write the results to a text file.

Thanks in advance,
Muggle
**Owls are expensive. Emails are free** Received on Mon Apr 24 2006 - 11:11:59 CDT

Original text of this message

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