Re: [GENERAL] Turning a subselect into an array

2004-10-29 Thread Jim C. Nasby
Thanks again for the help. I did manage to find that after a bunch of searching in the mailing list. There should really be a portion of the docs dedicated to array handling. On Fri, Oct 29, 2004 at 10:40:57PM -0600, Michael Fuhr wrote: > On Fri, Oct 29, 2004 at 05:13:02PM -0500, Jim C. Nasby wrot

Re: [GENERAL] Turning a subselect into an array

2004-10-29 Thread Michael Fuhr
On Fri, Oct 29, 2004 at 05:13:02PM -0500, Jim C. Nasby wrote: > Ok, next stupid question that I can't find in the docs... How would I > join a table to an array? IE: if I have an array of primary keys for > some table and I want to get the name field from that table and turn it > back into an array

Re: [GENERAL] Turning a subselect into an array

2004-10-29 Thread Jim C. Nasby
Ok, next stupid question that I can't find in the docs... How would I join a table to an array? IE: if I have an array of primary keys for some table and I want to get the name field from that table and turn it back into an array, how would I do that? On Thu, Oct 28, 2004 at 05:21:52PM -0600, Mich

Re: [GENERAL] Turning a subselect into an array

2004-10-28 Thread Michael Fuhr
On Thu, Oct 28, 2004 at 05:37:29PM -0500, Jim C. Nasby wrote: > I'm sure this has been answered before, but the search seems to be down > again. > > How can I convert the results of a subselect into an array? IE: > > CREATE TABLE a(a int, b int, c int[]); > INSERT INTO table_a > SELECT a, b,