working with arrays inside a plpgsql function

Поиск
Список
Период
Сортировка
От Luis Silva
Тема working with arrays inside a plpgsql function
Дата
Msg-id BAY117-F147241771170F333D76789B5960@phx.gbl
обсуждение исходный текст
Ответы Re: working with arrays inside a plpgsql function  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-novice
Hi all!

I'm trying to use array inside a pl/pgsql function and I'm having some
problems using the all array at the same time. Let me give you an example:

ident text[];

BEGIN

ident = $1;  -- $1 is a array argument from the plpgsql function
EXECUTE 'SELECT count(identity) FROM public_data WHERE identity IN ||ident
INTO asds;


This last query returns an error. Any guess to solve this problem? tks a lot
PS - How can I retrieved the size ofthe array? I saw the manual and I
couldn't find it.

Regards,

Lu�s

_________________________________________________________________
Check out all that glitters with the MSN Entertainment Guide to the Academy
Awards�   http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2


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

Предыдущее
От: Tim Bowden
Дата:
Сообщение: Re: install on ubuntu
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: working with arrays inside a plpgsql function