accessing fully qualified fields in records in PLPGSQL? - Mailing list pgsql-general

From Oberpriller, Wade D.
Subject accessing fully qualified fields in records in PLPGSQL?
Date
Msg-id 5B7014A44B89494E830AD32859FBC85802B3857D@nsc-msg01.network.com
Whole thread Raw
Responses Re: accessing fully qualified fields in records in PLPGSQL?  (Darren Ferguson <darren@crystalballinc.com>)
Re: accessing fully qualified fields in records in PLPGSQL?  (Jan Wieck <janwieck@yahoo.com>)
List pgsql-general
How does one access a field in a record from a query like so:

FOR REC IN SELECT myTable.oid FROM myTable, yourTable WHERE (myTable.id =
yourTable.id) LOOP
    VAL := REC.oid;
    VAL := REC.myTable.oid;
END LOOP;

I get errors in PLPGSQL compilation for both the assignment statements
above. What is the correct way to get the myTable oid in the REC record?

Wade Oberpriller                 http://www.storagetek.com
Software Development             Phone: (763) 424-1538
StorageTek: MRDC                        (800) 328-9108 ext. 1538
wade_oberpriller@storagetek.com  Fax:   (763) 391-1095

pgsql-general by date:

Previous
From: Darren Ferguson
Date:
Subject: Re: Could someone tell me what is wrong withthis function
Next
From: Darren Ferguson
Date:
Subject: Re: accessing fully qualified fields in records in PLPGSQL?