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 -> update several rows from a select???

update several rows from a select???

From: valigula <valigula_at_gmail.com>
Date: 7 May 2007 08:53:11 -0700
Message-ID: <1178553186.644822.101800@y5g2000hsa.googlegroups.com>


update tbl r set
(c1, c2, c3,c4,

            c5, c6, c7)=
 ( SELECT distinct c1, c2, c3,c4,

            c5, c6, c7
		  from tbl i
		  where i.c8= r.c8
		  and i.c7> r.c7
		  )


i am trying to update several rows from a select this rows can be up to 500k.
this is a huge time consuming for this.

Is it a better way of doing it???

Thanks in advance

A Received on Mon May 07 2007 - 10:53:11 CDT

Original text of this message

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