Skip to Main Content

Oracle Database Discussions

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!

getting error ora-01722: invalid number while fetching data.

MKJ10930279Feb 16 2015 — edited Dec 9 2019

select * from gen_prop_information_tab where txt_policy_no_char = 0100010280 giving error ora-01722: invalid number in production database where as the same query gives output in other databases. column txt_policy_no_char is varchar2(30). The data count in Production is more as compared to other database.

When the same query is executed as select * from gen_prop_information_tab where txt_policy_no_char = '0100010280', it fetches data in all the databases including production.

Please help in identifying the reason and solution for it. Oracle database version is 11.2.03

Thanks & Regards,

Mukesh

This post has been answered by John Stegeman on Feb 16 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2015
Added on Feb 16 2015
8 comments
5,719 views