pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: George Weaver <georgew1@mts.net>
To: Brian Knox <laotse@aol.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: "record" datatype - plpgsql
Date: Thu, 29 May 2003 16:29:39 -0500
Message-ID: <006401c32629$7e049510$0100007f@cleartag> (raw)
References: <Pine.LNX.4.53.0305280753040.30365@tao.office.aol.com>
	<005001c32624$0f0f3980$0100007f@cleartag>

Brian,

You can also use the "record" type as well in the same way.

George

----- Original Message -----
From: "George Weaver" <georgew1@mts.net>
To: "Brian Knox" <laotse@aol.net>; <pgsql-sql@postgresql.org>
Sent: Thursday, May 29, 2003 2:01 PM
Subject: Re: [SQL] "record" datatype - plpgsql


> 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
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>




view thread (8+ messages)  latest in thread

Message-ID: <006401c32629$7e049510$0100007f@cleartag>
Permalink:  ../006401c32629$7e049510$0100007f@cleartag/
Also on:    postgresql.org/message-id/006401c32629$7e049510$0100007f@cleartag

 · 

reply

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: <006401c32629$7e049510$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