SQL Language (MOSC)

MOSC Banner

Script to drop all constraints on s user tables?

edited Nov 16, 2011 3:17AM in SQL Language (MOSC) 4 commentsAnswered
Hi!
Im trying to create a simple script that drops the constraints for a user:

select 'alter table user1.'||table_name|| 'drop constraint' ||constraint_name|| from dba_tables where...

But Im stuck. How do I join dba_tables with dba_constraints?

Regards
U

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center