Re: [SQL] Passing arrays

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: [SQL] Passing arrays
Дата
Msg-id 20030213205623.V56568-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Passing arrays  (Michael Weaver <mweaver@corpusglobe.com>)
Список pgsql-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.


В списке pgsql-novice по дате отправления:

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: [SQL] Passing arrays
Следующее
От: brew@theMode.com
Дата:
Сообщение: Re: change year in timestamp