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 statement ???

RE: update statement ???

From: Chelur, Jayadas {PBSG} <jayadas.chelur_at_pepsi.com>
Date: Wed, 30 Jul 2003 13:44:26 -0800
Message-ID: <F001.005C7E43.20030730134426@fatcity.com>


UPDATE cli_branches
SET brch_name = REPLACE(UPPER(brch_name),'(NO PHONE #S)','') upper(brch_name) like '%PHONE%';

-----Original Message-----
Sent: Wednesday, July 30, 2003 5:24 PM
To: Multiple recipients of list ORACLE-L

Hi all,
I need to update a column (brch_name) to be without (NO PHONE #S) string. So 3954 will be Denver, 3955 will be Golden, and 3963 will be LOVELAND 29TH, etc. How to write this update statement??? Thank you!

  1* select brch_id, brch_name from cli_branches where upper(brch_name) like '%PHONE%'
SQL> /    BRCH_ID BRCH_NAME

---------- ------------------------------
      3954 DENVER (NO PHONE #S)
      3955 GOLDEN (NO PHONE #S)
      3956 ENGLEWOOD (NO PHONE #S)
      3957 LITTLETON (NO PHONE #S)
      3958 CHARLOTTE (NO PHONE #S)
      3959 S LEMAY (NO PHONE #S)
      3960 HARMONY ROAD (NO PHONE #S)
      3961 ENGLEWOOD (NO PHONE #S)
      3962 LOVELAND (NO PHONE #S)
      3963 LOVELAND 29TH (NO PHONE #S)
      3964 DENVER (NO PHONE #S)

__________________________________

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Janet Linsy
  INET: janetlinsy_at_yahoo.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Chelur, Jayadas {PBSG}
  INET: jayadas.chelur_at_pepsi.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jul 30 2003 - 16:44:26 CDT

Original text of this message

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