1、最簡單的方法,最方便的方法:
刪除資料庫,然後重新建立乙個空資料庫
2、但是有刪除所有表的方法
(1)產生刪除表的sql語句,(2)執行sql語句
產生刪除表的sql語句:
執行以上語句就可
清空表中的sql語句 :
select concat("truncate table ", table_name, ";") from information_schema.tables where table_schema="your_database_name";
oracle刪除資料庫中的所有表
連線 1 先禁用資料庫中所有的約束 select alter table table name disable constraint constraint name from user constraints where constraint type r 執行所有約束禁用命令。2 清空所有表中的資...
oracle刪除資料庫中的所有表
連線 1 先禁用資料庫中所有的約束 select alter table table name disable constraint constraint name from user constraints where constraint type r 執行所有約束禁用命令。2 清空所有表中的資...
Mysql刪除所有表不刪除資料庫方法
刪除表的命令 drop table 表名 如果有200張表,執行200次,想想就不想動手了。下面提供乙個使用information schema庫的方案 select concat drop table table name,from information schema.tables where ...