Suppose you have a table and you want to change one of this table primary id. you can use the following scrpit. primary ID here is "PK_S"
begin
for i in (select a.table_name, c.column_name
from user_constraints a, user_cons_columns c
where a.CONSTRAINT_TYPE...