Home » SQL & PL/SQL » SQL & PL/SQL » how to get the key of a relation?
how to get the key of a relation? [message #2131] Sun, 23 June 2002 21:04 Go to next message
keane
Messages: 23
Registered: June 2002
Junior Member
hi, I have a problem with getting the key of a relation by not looking at the relation creation schema. Can I do it through data dictionary? Thanks a lot!

keane
Re: how to get the key of a relation? [message #2145 is a reply to message #2131] Mon, 24 June 2002 08:58 Go to previous message
Siva Ram
Messages: 22
Registered: November 2001
Junior Member
Hi Keane

From what you have wrote, I could understand as : U want to know the constraint on a table(s), if so :

SQL> Select Constraint_name, Constraint_type from user_constraints where table_name='
';

replace TABLENAME with the table you want, but type the tablename in UPPERCASE.

Thank You
Siva Ram
Previous Topic: recent change from sqlserver to oracle8i, i don't know the passwords
Next Topic: returning result set in procedure
Goto Forum:
  


Current Time: Fri Apr 26 00:02:43 CDT 2024