Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: update statement ???
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) __________________________________
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: 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).
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: 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
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |