Re: [SQL] "record" datatype - plpgsql

2003-05-31 Thread Sean Chittenden
> > What I was asking is if there's anyway to use the NEW record to > > get a list of the columnnames in it without knowing them > > beforehand. > > Not in plpgsql ... and if you did, you couldn't do anything useful > with the names (like access the fields) anyway. I believe you can > do it in pl

Re: [SQL] "record" datatype - plpgsql

2003-05-31 Thread Jr.
)" } return OK ' LANGUAGE 'pltcl'; Brian Knox wrote: That's not what I was asking. I know I can access the values of each column using NEW.columnname. What I was asking is if there's anyway to use the NEW record to get a list of the columnnames in it without k

Re: [SQL] "record" datatype - plpgsql

2003-05-31 Thread Tom Lane
Brian Knox <[EMAIL PROTECTED]> writes: > What I was asking is if there's anyway to use > the NEW record to get a list of the columnnames in it without knowing them > beforehand. Not in plpgsql ... and if you did, you couldn't do anything useful with the names (like access the fields) anyway. I be

Re: [SQL] "record" datatype - plpgsql

2003-05-30 Thread Brian Knox
D]> > To: <[EMAIL PROTECTED]> > 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 t

Re: [SQL] "record" datatype - plpgsql

2003-05-30 Thread Stephan Szabo
On Thu, 29 May 2003, Brian Knox wrote: > 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

Re: [SQL] "record" datatype - plpgsql

2003-05-30 Thread George Weaver
Brian, You can also use the "record" type as well in the same way. George - Original Message - From: "George Weaver" <[EMAIL PROTECTED]> To: "Brian Knox" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 29, 2003 2:01 PM Subje

Re: [SQL] "record" datatype - plpgsql

2003-05-30 Thread George Weaver
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",

[SQL] "record" datatype - plpgsql

2003-05-30 Thread Brian Knox
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 ---(