Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> need help with query

need help with query

From: Lisa M. Lewis <lmg_at_isdsa.pgh.wec.com>
Date: 1997/07/15
Message-ID: <33CBC9DD.C988D45E@isdsa.pgh.wec.com>#1/1

Can anyone tell me if there is a better way to perform this update:

UPDATE users u
SET u.usermapid = ( SELECT ncm.usermapid

                                  FROM NewCookieMap ncm
                                  WHERE ncm.cookie = u.cookie )
WHERE EXISTS ( SELECT 'x'
                                FROM NewCookieMap ncm
                                WHERE ncm.cookie = u.cookie );

This query is in intended to update several million records.

It takes forever -- I don't know how long yet because it is still running.

Note: this query is inside a stored procedure.

Thanks in advance!

Lisa

P.S. Please reply by e-mail Received on Tue Jul 15 1997 - 00:00:00 CDT

Original text of this message

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