To see what your table definition looks like, after issuing such
commands, you can use:
DESC tablename;
This command, however, doesn't seem to print out constraint definitions
like KEYs and FOREIGN KEYs. We have found a way out of this,
by querying the "system tables" directly. i.e., these are "meta-tables"
(or tables about tables) that ORACLE maintains about the schema and nature
of information contained in the database. You can't add or delete entries
from system tables directly, but can query them to great benefit.
So, to find the constraints on a table called TEMP1, you do:
SELECT A.constraint_name, A.table_name, A.column_name, B.constraint_type,
B.search_condition, B.r_constraint_name
FROM all_cons_columns A, all_constraints B
WHERE A.constraint_name = B.constraint_name
AND B.table_name = 'TEMP1';
(replace TEMP1 with your table name). In the above example, "all_cons_columns"
and "all_constraints" are system tables. Type a DESC on them to see what they
are about!