Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> NUMBER(1) vs NUMBER
Hi all,
We met a pb few days ago : when we insert with ASP code value 1 in a NUMBER(1) column, everything was ok.
Then : select * from table where column = 1 ==> nothing !! and select * from table where column = 0 ==> OK (other lines inserted before)
BUT : select * from table where to_number(column) = 1 ==> OK
I changed column format from NUMBER(1) to NUMBER and everything was Ok.
So : NUMBER(1) != NUMBER ???
Any idea ?
Thanks