If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > informix query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-25-05, 10:57
shehzad_manekia shehzad_manekia is offline
Registered User
 
Join Date: Feb 2004
Posts: 30
informix query

i need to run a query where it will read all the name from my text file and pull out the age from informix table according to the names in my text file.The names are the primary key in my database.

Is there a way i can get this through a script?
Reply With Quote
  #2 (permalink)  
Old 01-25-05, 12:34
lgaxiola lgaxiola is offline
Registered User
 
Join Date: Aug 2004
Posts: 99
Hope this is what you are looking for:

create temp table names (name varchar(20));
load from names.txt insert into names;
select a.name, a.age
from <your table> a, names b
where a.name = b.name;
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On