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!

How to convert a column from string to number

3137754Dec 11 2015 — edited Dec 11 2015

Hi All,

I am new to oracle databases and i need to convert a field in my table called dummy_code which is stored in a string format to a number.

When i write the following SQL command i get an error "ORA-01722: invalid number"

select dummy_code from A

Where dummy_code = 12345

Any help is greatly appreciated.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2016
Added on Dec 11 2015
2 comments
1,008 views