Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Oracle SQL help
How about something like this:
update table
set column = substr(column,0,instr(column,':')) || ':9999999999'
or something like that. First, do a:
select substr(column,0,instr(column,':')) || ':9999999999' from table;
to make sure I got the syntax right--I haven't checked it. Once you get it right, plug it in, check it and, if it's right, commit it.
Dan
--
Want to update a column of a table with 150,000 rows
columns values are like "JOHN THOMPSON:0011442717"
Want to change the numeric value after ":" of each row to a 10 digit constant numeric 9999999999 for all 150,000 rows
--
Thanks for all ideas and help.
--
Bala Rao
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 28 2007 - 16:55:32 CDT
![]() |
![]() |