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 first published in August 2005

Dig deeper on Oracle database backup and recovery

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close