Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

to_number conversion for integer value datatype varchar2

3597207Jun 15 2020 — edited Jun 15 2020

I have column datatype varchar2

i need to change it to number

the value for that column is .17782,.20704,.24128

how can i convert this to number

    

    SELECT  TO_NUMBER(COALESCE('.17782,.20704,.24128','1'))

             from dual;

this through invalid number error

Comments
Post Details
Added on Jun 15 2020
7 comments
345 views