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 -> Re: Possible to compare two variables of type %ROWTYPE?

Re: Possible to compare two variables of type %ROWTYPE?

From: John Russell <netnews8_at_johnrussell.mailshell.com>
Date: Thu, 27 Nov 2003 04:19:51 GMT
Message-ID: <mfuasvk3p3taa8bp67gimm1rtfpsda56vg@4ax.com>


On Wed, 26 Nov 2003 13:09:00 +0100, "Randi Wølner" <randiwolner_at_hotmail.com> wrote:

>Oracle 8.1.7: Is it possible in PL/SQL to compare two variables of type
>%ROWTYPE to each other? I wished to do something like this:
>
>
>If ExistRow<>NewRow THEN ...

Can't compare the records directly. You can hide the field-to-field comparisons inside a user-written function:

IF rows_equal(ExistRow,NewRow) THEN ...

John

--
Photo gallery: http://www.pbase.com/john_russell/
Received on Wed Nov 26 2003 - 22:19:51 CST

Original text of this message

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