Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Strange workings of Oracle
Hi everyone,
I noticed something very strange when i tried to cache a table.
CACHE
N
Y
4)SQL> select table_name,cache from dba_tables where cache='Y' ;
no rows selected
5)select table_name,cache from dba_tables where cache like '%Y%';
TABLE_NAME CACHE
------------------------------ -----
EMP Y
6) SQL> select table_name,cache from
dba_tables where cache=' Y';
TABLE_NAME CACHE
------------------------------ -----
EMP Y
Gave 4 spaces before y
If the column is varchar2 shouldn't it put only Y rather than prefixing it with spaces.
Even for Datatype char , space are postfixed .
I found this on Oracle 7.3.4 and Oracle 8.1.5
ThanksReceived on Sun Oct 15 2000 - 23:54:26 CDT
![]() |
![]() |