Re: Possible to have array as input paramter for a function?

Поиск
Список
Период
Сортировка
От George Weaver
Тема Re: Possible to have array as input paramter for a function?
Дата
Msg-id 001a01c38d9a$e5d8da60$270ea18e@cleartag
обсуждение исходный текст
Ответ на Possible to have array as input paramter for a function?  ("Kumar" <sgnerd@yahoo.com.sg>)
Список pgsql-sql
Hi Kumar,
 
It is possible to pass an array to a PL/pgSQL function, but I believe you must specify the length of the array (at least doing so works for me). E.g. "varchar(20)".
 
Regards,
George
----- Original Message -----
From: Kumar
To: psql
Sent: Wednesday, October 08, 2003 5:47 AM
Subject: [SQL] Possible to have array as input paramter for a function?

Dear Friends,
 
I am working with Postgres 7.3.4 on RH Linux 7.2 and my windows client is PgAdmin 3.
 
Is it possible to pass a Varchar[] as a input parameter for a PL/pgSQL function. While I tried it give a error
    Type "varchar[]" does not exists.
 
Does this is supported in Postgres?
 
Anyone have a link or while paper on handling arrays in functions?
 
Please enlighten me on this.
 
Regards
Kumar

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

Предыдущее
От: "Kumar"
Дата:
Сообщение: Possible to have array as input paramter for a function?
Следующее
От: "George Weaver"
Дата:
Сообщение: Re: Possible to have array as input paramter for a function?