描述
该语句用于删除放在回收站的表。
格式
PURGE TABLE object_name;
参数解释
参数 | 描述 |
object_name | 对象进入回收站后的新名字 |
示例
- 删除放在回收站中的表 __recycle_$_1_1099511628776_1099511677778。
OceanBase(admin@test)> create table test(c1 int);
Query OK, 0 rows affected (0.16 sec)
OceanBase(admin@test)> drop table test;
Query OK, 0 rows affected (0.03 sec)
OceanBase(admin@test)> show recyclebin;
+-------------------------------------------+---------------+-------+----------------------------+
| OBJECT_NAME | ORIGINAL_NAME | TYPE | CREATETIME |
+-------------------------------------------+---------------+-------+----------------------------+
| __recycle_$_1_1099511628776_1099511677778 | test | TABLE | 2017-10-20 17:40:22.304025 |
+-------------------------------------------+---------------+-------+----------------------------+
1 row in set (0.02 sec)
OceanBase(admin@test)> purge table __recycle_$_1_1099511628776_1099511677778;
Query OK, 0 rows affected (0.04 sec)