|
Re: Passing arrays: msg#00173db.postgresql.novice
On Fri, 14 Feb 2003, Michael Weaver wrote: > How do you get an array of elements to be passed to a stored proc such that > you can use the array in a SELECT statement in the WHERE clause > - e.g. WHERE field IN (array) etc... A straight WHERE field IN (array) doesn't work. That's attempting to compare the field directly to the array as a whole (which is why you get the particular error you do. You might want to look at contrib/array for some loadable functions/operators in working with arrays. ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Passing arrays: 00173, Josh Berkus |
|---|---|
| Next by Date: | Re: [SQL] Passing arrays: 00173, Michael Weaver |
| Previous by Thread: | Re: Passing arraysi: 00173, Josh Berkus |
| Next by Thread: | Re: [SQL] Passing arrays: 00173, Michael Weaver |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |