Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trigger Question. Use :OLD as ROWTYPE

476200Feb 8 2007 — edited Feb 8 2007
Regarding table triggers before update.<br>
<br>
Is it possible to use :OLD as a ROWTYPE within the /for each row/ clause?<br>
And ditto for :NEW?<br>
<br>
Since :OLD would represent a whole row in the table we're updating - I'd like to submit the whole row into a function (with 1 input rowtype matching the table in question) and replace :NEW with the function output (identical rowtype).<br>
<br>
Is this possible without having to create a temp rowtype and copying/assigning values one by one from :OLD?<br>
<br>
Sincerely / 76°®
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2007
Added on Feb 8 2007
4 comments
423 views