I have an Oracle table and a column (col1
) has type varchar2(12 byte)
. It has one row and value of col1
is 1234
When I say
select * from table where col1 = 1234
Oracle says invalid number. Why is that? Why I cannot pass a number when it is varchar2
?
EDIT: All the responses are great. Thank you. But I am not able to understand why it does not take 1234
when 1234
is a valid varchar2 datatype.