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: Pardee, Roy E <roy.e.pardee_at_lmco.com>
Date: Wed, 30 Jul 2003 13:39:35 -0800
Message-ID: <F001.005C7E42.20030730133935@fatcity.com>


Have a look at the docs for the SUBSTR() and INSTR() functions--those should serve you.

HTH,
-Roy

Roy Pardee
Programmer/Analyst/DBA
SWFPAC Lockheed Martin IT
Extension 8487

-----Original Message-----

Sent: Wednesday, July 30, 2003 2: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: Pardee, Roy E
  INET: roy.e.pardee_at_lmco.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:39:35 CDT

Original text of this message

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