User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 428,566 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,603 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser: Programming Forums
Views: 2326 | 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.

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

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Oracle Forum

All times are GMT -4. The time now is 11:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC