Som brugeren, der ejer tabellen, kan du:
select constraint_name, status, deferrable, deferred, validated, generated
from user_constraints
where constraint_type = 'P' and table_name = 'Table Name'
Opdatering:Jeg tror, at dette giver dig, hvad du har brug for.
SELECT cols.table_name, cols.column_name, cols.position, cons.status, cons.owner
FROM all_constraints cons, all_cons_columns cols
WHERE cols.table_name = 'Table Name'
AND cons.constraint_type = 'P'
AND cons.constraint_name = cols.constraint_name
AND cons.owner = cols.owner
ORDER BY cols.table_name, cols.position
Du kan tjekke dette websted for flere detaljer.