Correction, use the user_con_constriants table for the colunms. This statement ought to help.
Code:
select B.COLUMN_NAME, B.TABLE_NAME
from USER_CONS_COLUMNS B, user_constraints A
where A.conStraint_type = 'P'
and A.table_name = <table_name>
and b.constraint_name = a.CONSTRAINT_NAME
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.