Please support our Oracle advertiser: Programming Forums
Views: 2438 | Replies: 3
![]() |
•
•
Join Date: Jan 2007
Location: Austin, TX
Posts: 30
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
can any body tell how to delete all the tables in a user ata a time
I have never had to do that so I don't know if there is a built in command to do it. The query below would return all the drop commands you need which you could then run in SQLPLUS. If you were just trying to empty the tables substitute truncate for drop.
SQL Syntax (Toggle Plain Text)
SELECT 'DROP '||table_name|| ' \' FROM all_tables WHERE owner = 'USER TO PURGE'
Dan Moore
www.danmoore.org
www.danmoore.org
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode