|
Re: Where is Primarykey and Table Structure stored? [message #53189 is a reply to message #53187] |
Mon, 02 September 2002 03:14 |
Manju
Messages: 10 Registered: November 2000
|
Junior Member |
|
|
Hi,
Are you looking for the metadata from the dictionary?
If so you can try this statement
select substr(a.column_name,1,35),a.position,b.constraint_type from user_cons_columns a, user_constraints b where a.table_name = 'XYZ' and a.constraint_name = b.constraint_name and a.table_name = b.table_name and b.constraint_type = 'P'
Hope this helps
Cheers,
Manju
|
|
|