Home » RDBMS Server » Server Administration » Use SQL*Plus to update a part of a string or value
Use SQL*Plus to update a part of a string or value [message #375066] Mon, 23 July 2001 10:06 Go to next message
Jalbah
Messages: 2
Registered: July 2001
Junior Member
I need to change the area codes for several records in an Oracle database. I tried the following:

update customer
set substr(phone,1,3) = "913"
where custID = '123456';

and I got an error saying that there was no "=" after substr. Anyone tell me the correct syntax, please?
Re: Use SQL*Plus to update a part of a string or value [message #375103 is a reply to message #375066] Thu, 26 July 2001 05:08 Go to previous message
Jalbah
Messages: 2
Registered: July 2001
Junior Member
Thanks! That works great!
Previous Topic: Re: PL/SQL Positions in Richmond, VA and Virginia Beach
Next Topic: Re: SQL Server 7 statement to Oracle 8i
Goto Forum:
  


Current Time: Fri Jul 05 11:13:51 CDT 2024