Re: Arrays in PL/pgSQL routines?

From: "Ken Winter" <ken(at)sunward(dot)org>
To: "'Bricklen Anderson'" <banderson(at)presinet(dot)com>
Cc: "'PostgreSQL pg-sql list'" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Arrays in PL/pgSQL routines?
Date: 2005-12-29 18:23:28
Message-ID: 005a01c60ca4$f79e3bb0$6603a8c0@kenxp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Bricklen ~

That works. (Odd that the initialization seems to be necessary to make it
work.) Thanks! Yes, I'm using version 7.4.

~ Ken

> -----Original Message-----
> From: Bricklen Anderson [mailto:banderson(at)presinet(dot)com]
> Sent: Thursday, December 29, 2005 12:53 PM
> To: Ken Winter
> Cc: PostgreSQL pg-sql list
> Subject: Re: [SQL] Arrays in PL/pgSQL routines?
>
> Ken Winter wrote:
> > Can arrays be declared in PL/pgSQL routines? If so, how?
> >
> <snip>
> > DECLARE
> >
> try:
> my_array VARCHAR[] := '{}';
>
> not sure if this works in 7.4 though, if that's the version that you are
> using.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-12-29 18:42:18 Re: Arrays in PL/pgSQL routines?
Previous Message Michael Fuhr 2005-12-29 18:21:21 Re: Arrays in PL/pgSQL routines?