I found this strange behavior, and I'm puzzling this ... does anyone have any ideas?
Oracle 10g: I have two different tables, both columns named " TESTCOL " like Varchar2 (10) are not NULL.
If I execute this query in table1 , I get the correct results:
select * from table1 where TESTCOL = 1234;
Note that I do not specifically post "1234" ... this is not a typo, this is a dynamically generated request, and I will try not to change it (at least not in the near future).
But if I run the same query on table2 , I get this error message:
ORA-01722: Invalid number
Both queries run in the same session, in the same database.
I joined these two tables with this column, and the connection is working fine, the only problem occurs when I try to use this condition.
Any ideas on what might differ from one table to another?
Thanks in advance.
frenetix
source share