|
Re: Are table names case sensitive ? (stupid question) [message #100089 is a reply to message #100085] |
Tue, 16 July 2002 04:59 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
Nothing is really stupid, as Technology is concerned.
not everything is impossible and not everything is possible.
[b]case 1.[/b]
select * from emp
is same as
select * from EMP
[b]case 2.[/b]
but when u use table_name in where clause it should CAPS by defualt( becuase oracle stores it as such).
SQL> select * from cat where table_name='emp';
no rows selected
SQL> select * from cat where table_name='EMP';
TABLE_NAME TABLE_TYPE
------------------------------ -----------
EMP TABLE
[b]case 3:[/b]
under considerations (which is not recomended) u can create a table with small caps ie..emp.
SQL> create table "emp1" as select * from emp;
Table created.
SQL> select * from cat where table_name='emp1';
TABLE_NAME TABLE_TYPE
------------------------------ -----------
emp1 TABLE
SQL> select * from cat where table_name='EMP1';
TABLE_NAME TABLE_TYPE
------------------------------ -----------
EMP1 TABLE
|
|
|