Q

Dropping two tables with a single drop table statement

I want to drop two tables in a single drop table statement.

drop table table1,table2;

I want to drop two tables in a single drop table statement.

Unfortunately, you cannot do this in one statement. I'm not sure why this is required, but if you absolutely need one statment, then you'll have to code a stored procedure to do your drop commands one at a time. Then execute the stored proc in one statement.
This was last published in August 2005

Dig Deeper on Oracle database backup and recovery

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close