using a list to query - Mailing list pgsql-sql

From johnf
Subject using a list to query
Date
Msg-id 200905020955.29386.jfabiani@yolo.com
Whole thread Raw
Responses Re: using a list to query
List pgsql-sql
I have a list (or array) of primary keys stored in a field (data type text).  
I would like to use the list to retrieve all the data from a table based on 
the list.

my text field contains:'123,134,343,345'

I would to do something like the following:

Select * from table1 where table1.pkid in (select myTextfield from table2)

So the question is there a simple way to use the list to retrieve my data?
-- 
John Fabiani


pgsql-sql by date:

Previous
From: Lucas Brito
Date:
Subject: Re: Comparing two tables of different database
Next
From: Isaac Dover
Date:
Subject: Fwd: Comparing two tables of different database