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!

tilde in number column!

cubeguySep 27 2017 — edited Sep 27 2017

Not sure how tilde got inserted in NUMBER column. (no precision defined)

We scanned the app code, but nothing has found.

 

When I do as

select c1 from t1 where c1 = '~' --where c1 is NUMBER data type (create table t1 (c1 number))

ERROR at line 1:

ORA-01722: invalid number

And

select c1 from t1 where c1 like '~'

it gives me output as ~

 

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

PL/SQL Release 11.2.0.4.0 - Production

CORE 11.2.0.4.0      Production

TNS for Linux: Version 11.2.0.4.0 - Production

NLSRTL Version 11.2.0.4.0 - Production

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2017
Added on Sep 27 2017
8 comments
472 views