Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Fine point on rowtype and update
Since the pl/sql call is turned into an
'update every column' statement you are,
indeed, updating the primary key, and every
other indexed column for the row.
Of course, you may not be changing the values, so you don't necessarily leave Oracle chasing down indexes to modify index entries, but there are two side-effects:
-- Regards Jonathan Lewis http://www.jlcomp.demon.co.uk/faq/ind_faq.html The Co-operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/seminar.html Optimising Oracle Seminar - schedule updated July 27th "nullpointer" <null_pointer_at_rediffmail.com> wrote in message news:c0728f9d.0408192205.4a4dbfb2_at_posting.google.com...Received on Sat Aug 21 2004 - 06:17:43 CDT
> Just wondering if its a good idea to update using the rowtype
> variable. You might end up updating the primary key.
>
> Any thoughts ??
>
> Dev