1SELECT *
2FROM ALL_CONSTRAINTS c,
3 ALL_CONS_COLUMNS cols
4WHERE c.CONSTRAINT_TYPE = 'P'
5 AND c.CONSTRAINT_NAME = COLS.CONSTRAINT_NAME
6 AND c.OWNER = COLS.OWNER
7 AND c.OWNER = 'schema_name'
8 AND cols.TABLE_NAME = 'table_name'
9ORDER BY cols.TABLE_NAME, COLS.POSITION;