From: | "George Weaver" <georgew1(at)mts(dot)net> |
---|---|
To: | "Brian Knox" <laotse(at)aol(dot)net> |
Cc: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: "record" datatype - plpgsql |
Date: | 2003-05-29 21:29:39 |
Message-ID: | 006401c32629$7e049510$0100007f@cleartag |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Brian,
You can also use the "record" type as well in the same way.
George
----- Original Message -----
From: "George Weaver" <georgew1(at)mts(dot)net>
To: "Brian Knox" <laotse(at)aol(dot)net>; <pgsql-sql(at)postgresql(dot)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(at)aol(dot)net>
> To: <pgsql-sql(at)postgresql(dot)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(at)postgresql(dot)org)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2003-05-29 22:05:01 | Re: "record" datatype - plpgsql |
Previous Message | Josh Berkus | 2003-05-29 20:48:01 | Re: CREATE TABLES AS looses constraints |