RSS Forums RSS
Please support our Oracle advertiser: Programming Forums

how to delete more then one row at a time

Join Date: Jan 2007
Location: Austin, TX
Posts: 30
Reputation: Memento is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Memento Memento is offline Offline
Light Poster

Re: how to delete more then one row at a time

  #2  
Mar 29th, 2007
Originally Posted by satish.paluvai View Post
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.

  1. SELECT 'DROP '||table_name|| ' \'
  2. FROM all_tables
  3. WHERE owner = 'USER TO PURGE'
  4.  
Dan Moore
www.danmoore.org
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:59 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC