Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Compare two rows

Compare two rows

From: <paulhux174_at_hotmail.com>
Date: 4 Dec 2005 17:02:39 -0800
Message-ID: <1133742299.113382.78940@g43g2000cwa.googlegroups.com>


 rec1 testTable%ROWTYPE -- have substaniated this variable

How can I reference a column in the record dynamically?

eg:
  instead of using

      value1 := rec1.column1;
how can I use a variable instead of column1

  thisColumn varchar2 (30) := 'column1';   value1 := rec1(thisColumn);

  thisColumn := 'column4';
  value1 := rec1(thisColumn); Received on Sun Dec 04 2005 - 19:02:39 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US