Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Updating a table
In article <slrn6k93c9.kf0.vikasa_at_8080b0da.ims.att.com>, vikasa_at_att.com (Vikas Agnihotri) wrote:
> Have a file containing key columns + additive facts. A table in the
> database needs to be updated using this file. If the row exists based on
> the key, update the row otherwise insert it.
>
> Which of the following methods do you think will be the fastest and why?
>
> Method 1:
> --------
> snip
> Method 2:
> --------
> snip
> Method 3:
> --------
> snip
In most circumstances, the most direct method is also the most efficient:
HTH
-- Chrysalis "FABRICATE DIEM PVNC" (To to protect and to serve) Motto of the City Guard Terry PratchettReceived on Wed Apr 29 1998 - 00:00:00 CDT
![]() |
![]() |