Home>Article>Database> How to delete all tables in oracle

How to delete all tables in oracle

WBOY
WBOY Original
2022-01-26 14:29:46 21342browse

In Oracle, you can use the "select 'Drop table '||table_name||';' from all_tables where owner='User name to delete all tables';" statement to delete all tables under the specified user , the table name needs to be in uppercase letters

How to delete all tables in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to delete all tables in oracle

The syntax is:

select 'Drop table '||table_name||';' from all_tables where owner='要删除所有表的用户名(大写)';

The example is as follows:

How to delete all tables in oracle

Recommended tutorial: "Oracle Video Tutorial

The above is the detailed content of How to delete all tables in oracle. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn