Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Is User_tab_columns correct?
Hi,
I found something interesting with user_tab_columns in Oracle 8.0.3. Try this:
SVRMGR>
SVRMGR> drop table test;
Statement processed.
SVRMGR> drop type t_test2;
Statement processed.
SVRMGR> drop type t_test1;
Statement processed.
SVRMGR> SVRMGR> create or replace type t_test1 as object 2> (id integer 3> );
SVRMGR> SVRMGR> create or replace type t_test2 as object 2> (t2 ref t_test1 3> );
SVRMGR> SVRMGR> create table test 2> (x t_test2 3> );
SVRMGR> SVRMGR> select column_name,data_type 2> from user_tab_columns 3> where table_name='TEST'; COLUMN_NAME DATA_TYPE ------------------------------ ------------------------------ X T_TEST2 X T_TEST1
Column x has two different datatypes. Is this correct?
Andrew Protasov Received on Wed Nov 04 1998 - 08:45:42 CST
![]() |
![]() |