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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: UPDATE SQL

Re: UPDATE SQL

From: Chirag DBA <ChiragDBA_at_gmail.com>
Date: Thu, 14 Oct 2004 13:08:26 +0530
Message-ID: <1be1d2004101400386a3b11f3@mail.gmail.com>


Hi Guyz,

It is working now. I made a mistake in typing the query properly.

Thanx Steve. I got the query as follow.

UPDATE PROFILE_CUSTOMERS SET SP_TYPE_CD = ( SELECT SP_TYPE_CD FROM PROFILE_SP_TYPE_CD
WHERE PROFILE_SP_TYPE_CD.SP_TYPE_NAME = Profile_Customers.SP_TYPE_CD ) WHERE EXISTS
  ( SELECT Profile_sp_type_cd.SP_TYPE_CD     FROM Profile_sp_type_cd
    WHERE PROFILE_SP_TYPE_CD.SP_TYPE_NAME = Profile_Customers.SP_TYPE_CD);

else I have to write the cursor n do that one by one from masters. and for nitely pumps, this will be too time counsuming. This query is not taking even 1 second to update 18000 rows. and I need to do this on couple of more columns too.

Coooooooooooooooooooooooooooooooooooooooooolllllllll........... :-)

Thanx again guyz.
http://www.techonthenet.com/sql/update.htm

Received on Thu Oct 14 2004 - 02:34:38 CDT

Original text of this message

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