--刪除空的表空間,但是不包含物理檔案
drop tablespace tablespace_name;
--刪除非空表空間,但是不包含物理檔案
drop tablespace tablespace_name including contents;
--刪除空表空間,包含物理檔案
drop tablespace tablespace_name including datafiles;
--刪除非空表空間,包含物理檔案
drop tablespace tablespace_name including contents and datafiles;
--如果其他表空間中的表有外來鍵等約束關聯到了本表空間中的表的字段,就要加上cascade constraints
drop tablespace tablespace_name including contents and datafiles cascade constraints;
mysql刪除表的幾種方式
刪除表的幾種方式 建立乙個資料庫為 mybatis,表為user,插入幾條資料 drop table user 直接刪除表資訊,最快 truncate table user 刪除表資料,不刪除表的結構,速度排第二 delete from user where 1 1 根據條件刪除資料,不刪除表結構,...
Oracle 擴充套件表空間大小的幾種方式
環境 windows作業系統 增加表空間大小的四種方法 meathod1 給表空間增加資料檔案 meathod2 新增資料檔案,並且允許資料檔案自動增長 autoextend on next 5m maxsize 100m meathod3 允許已存在的資料檔案自動增長 autoextend on ...
資料庫幾種表刪除方式
drop 語法 drop table 表名稱刪除內容和定義,刪除的是整個表 結構和資料 將表所占用的空間全釋放掉。無法回滾,所以刪除是不能恢復的,如果再次使用的話需要新建表。truncate truncate table 表名稱只是清空表,刪除內容,釋放空間,但不刪除定義 保留表的資料結構 且不會把...