| From: | Curtis Scheer <Curtis(at)DAYCOS(dot)com> |
|---|---|
| To: | Tony Wasson <ajwasson(at)gmail(dot)com>, Curtis Scheer <Curtis(at)DAYCOS(dot)com> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: How to pass array of values to a stored procedure |
| Date: | 2006-07-18 18:37:35 |
| Message-ID: | 031936836C46D611BB1B00508BE7345D048DABB8@gatekeeper.daycos.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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 <ajwasson(at)gmail(dot)com> wrote:
> On 7/18/06, Curtis Scheer <Curtis(at)daycos(dot)com> 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).
> >
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Osvaldo Kussama | 2006-07-18 19:05:50 | Re: Like with special character |
| Previous Message | Aaron Bono | 2006-07-18 18:35:31 | Re: hi let me know the solution to this question |