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: Oracle SQL help

Re: Oracle SQL help

From: Dan Norris <dannorris_at_dannorris.com>
Date: Thu, 28 Jun 2007 14:55:32 -0700 (PDT)
Message-ID: <732654.49431.qm@web35411.mail.mud.yahoo.com>


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

Original text of this message

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