RSS Forums RSS
Please support our Oracle advertiser: Programming Forums
Views: 2438 | Replies: 3
Reply
Join Date: Mar 2007
Posts: 45
Reputation: satish.paluvai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
satish.paluvai satish.paluvai is offline Offline
Light Poster

Question how to delete more then one row at a time

  #1  
Mar 29th, 2007
can any body tell how to delete all the tables in a user ata a time
AddThis Social Bookmark Button
Reply With Quote  
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  
Join Date: Mar 2007
Posts: 45
Reputation: satish.paluvai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
satish.paluvai satish.paluvai is offline Offline
Light Poster

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

  #3  
Mar 30th, 2007
U Have Tried This One? This Is Not Working. All The Tables R Same Like That Only
Reply With Quote  
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

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

  #4  
Mar 30th, 2007
I don't know what you mean by "All The Tables R Same Like That Only".
Dan Moore
www.danmoore.org
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:23 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC