Re: How to use Integer array in where IN clause parameter - Mailing list pgsql-general

From Jeff Davis
Subject Re: How to use Integer array in where IN clause parameter
Date
Msg-id 1187290651.24679.10.camel@dogma.ljc.laika.com
Whole thread Raw
In response to How to use Integer array in where IN clause parameter  (Ranjan Kumar Baisak <rbaisak@nyc.yamaha.com>)
List pgsql-general
On Thu, 2007-08-16 at 14:36 -0400, Ranjan Kumar Baisak wrote:
> Hello,
>          Can anybody suggest me how to use Integer array inside a
> function in where IN clause.
> In my function, I have used it like
> WHERE   d_base.id in (array_to_string (integer_array, ','))
>
> However it does not work. ANy suggestion?

It looks like you want to use:

WHERE d_base.id = ANY(integer_array)

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Yet Another COUNT(*)...WHERE...question
Next
From: "D. Dante Lorenso"
Date:
Subject: Re: SELECT ... FOR UPDATE performance costs? alternatives?