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!

ORA-01722: invalid number error when comparing varchar and number

MadhuriJul 15 2010 — edited Jul 15 2010
Hi,

We are upgrading our databases to 10g and have issue with the below query

SELECT VALUE FROM table1 WHERE SUBSTR (VALUE, 10) = 1.

In table1, VALUE is the column name and it will have data ending with number. ex: SIGNATURE1, SIGNATURE2, SIGNATURE3, SIGNATURE4....SIGNATURE9.

As output of substr is varchar, Is comparing it with number throwing the error?
If so, the same query is working perfect in another 10g database which we migrated into.

Please help.

Thanks,
Madhuri
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2010
Added on Jul 15 2010
12 comments
4,174 views