convert char to number
609621Nov 21 2007 — edited Nov 23 2007Hai all,
I have a colmn called Kilometers in table of datatype varchar and has got morethan 20,000 numeric records in it.. only numbers are getting stored in that column.. now am creating one more table with column called kiometres with datatype number..
I want to insert the records of table A.Kilometres to B.Kilometres.. I tried the follwoing :
insert into project_mileage (kilometres) select (to_number(kilometres,'9999999')) from project
am getttin the error :
ora-01722. invalid number.
how can I get the records inserted..
Thanks
Kai