From: George Weaver <georgew1@mts.net>
To: Brian Knox <laotse@aol.net>
To: pgsql-sql@postgresql.org
Subject: Re: "record" datatype - plpgsql
Date: Thu, 29 May 2003 14:01:54 -0500
Message-ID: <005001c32624$0f0f3980$0100007f@cleartag> (raw)
References: <Pine.LNX.4.53.0305280753040.30365@tao.office.aol.com>
Hi Brian;
Assuming "NEW" has been declared as foo%rowtype, you can access the
columns thus
NEW.xxx where xxx is the column name
HTH.
George
----- Original Message -----
From: "Brian Knox" <laotse@aol.net>
To: <pgsql-sql@postgresql.org>
Sent: Thursday, May 29, 2003 11:11 AM
Subject: [SQL] "record" datatype - plpgsql
> Given a variable of the "record" data type in pl/pgsql, is it possible to
> get the names of the columns ( attributes ) of that record?
>
> eg, given record "NEW" for table "foo", is there a way to get information
> concerning the columns that make up that record?
>
> Brian Knox
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: georgew1@mts.net, laotse@aol.net
Subject: Re: "record" datatype - plpgsql
In-Reply-To: <005001c32624$0f0f3980$0100007f@cleartag>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox