Arrays in PL/pgSQL routines?

From: "Ken Winter" <ken(at)sunward(dot)org>
To: "PostgreSQL pg-sql list" <pgsql-sql(at)postgresql(dot)org>
Subject: Arrays in PL/pgSQL routines?
Date: 2005-12-29 17:46:28
Message-ID: 005101c60c9f$cfb5f660$6603a8c0@kenxp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Can arrays be declared in PL/pgSQL routines? If so, how?

Section 8.10 of the documentation
(http://www.postgresql.org/docs/7.4/static/arrays.html) tells how to declare
and use arrays as table columns. But I don't find any part of the
documentation that says how to declare a simple array local to a PL/pgSQL
function. I tried the following guess, but it only won me a "syntax error
at or near VARCHAR:

DECLARE

my_array VARCHAR [];

.

~ TIA

~ Ken

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Garamond 2005-12-29 17:48:26 Re: constraint and ordered value
Previous Message Simon Gardner 2005-12-29 15:11:29 Problem with simple update query