Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]

Поиск
Список
Период
Сортировка
От Axel Rau
Тема Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]
Дата
Msg-id 29C206C6-7272-4B12-963D-8593020FB30E@Chaos1.DE
обсуждение исходный текст
Ответы Re: Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]  (Richard Broersma <richard.broersma@gmail.com>)
Re: Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-sql
Good morning,

I have a function argument blah of type text containing something like   33,44,55,66
. Can I cast it in some way to use it in an IN clause as integers like   UPDATE foo SET x = y WHERE id IN ( blah );
or need I revert to dynamic SQL (EXECUTE...) ?

Thanks, Axel
---
axel.rau@chaos1.de  PGP-Key:29E99DD6  +49 151 2300 9283  computing @
chaos claudius



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

Предыдущее
От: Harald Fuchs
Дата:
Сообщение: Re: How to search for a part of a number
Следующее
От: Richard Broersma
Дата:
Сообщение: Re: Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]