Re: [SQL] How to pass array of values to a stored procedure

2006-07-18 Thread Curtis Scheer
Thanks Tom and Tony for the help, I actually implemented the solution using a bpchar[] and hopefully the "field1 = ANY (arrayvalue)" syntax will not hurt the query performance a lot without an index scan. Thanks again, Curtis On 7/18/06, Tony Wasson <[EMAIL PROTECTED]> wrote: > On 7/18/06, Curti

Re: [SQL] How to pass array of values to a stored procedure

2006-07-18 Thread Tony Wasson
On 7/18/06, Tony Wasson <[EMAIL PROTECTED]> wrote: On 7/18/06, Curtis Scheer <[EMAIL PROTECTED]> wrote: > Does anyone have any examples of how I would make a stored procedure in > plpgsql that would allow for passing a list or arrays of values to be used > in an sql IN clause? Like so: select *

Re: [SQL] How to pass array of values to a stored procedure

2006-07-18 Thread Tony Wasson
On 7/18/06, Curtis Scheer <[EMAIL PROTECTED]> wrote: Does anyone have any examples of how I would make a stored procedure in plpgsql that would allow for passing a list or arrays of values to be used in an sql IN clause? Like so: select * from table where field1 in (values). Here's a very sim

Re: [SQL] How to pass array of values to a stored procedure

2006-07-18 Thread Tom Lane
Curtis Scheer <[EMAIL PROTECTED]> writes: > Does anyone have any examples of how I would make a stored procedure in > plpgsql that would allow for passing a list or arrays of values to be used > in an sql IN clause? Like so: select * from table where field1 in (values). Probably the "field1 = ANY