描述

该语句用于删除放在回收站的表。

格式

  1. PURGE TABLE object_name;

参数解释

参数

描述

object_name

对象进入回收站后的新名字

示例

  • 删除放在回收站中的表 __recycle_$_1_1099511628776_1099511677778。
  1. OceanBase(admin@test)> create table test(c1 int);
  2. Query OK, 0 rows affected (0.16 sec)
  3. OceanBase(admin@test)> drop table test;
  4. Query OK, 0 rows affected (0.03 sec)
  5. OceanBase(admin@test)> show recyclebin;
  6. +-------------------------------------------+---------------+-------+----------------------------+
  7. | OBJECT_NAME | ORIGINAL_NAME | TYPE | CREATETIME |
  8. +-------------------------------------------+---------------+-------+----------------------------+
  9. | __recycle_$_1_1099511628776_1099511677778 | test | TABLE | 2017-10-20 17:40:22.304025 |
  10. +-------------------------------------------+---------------+-------+----------------------------+
  11. 1 row in set (0.02 sec)
  12. OceanBase(admin@test)> purge table __recycle_$_1_1099511628776_1099511677778;
  13. Query OK, 0 rows affected (0.04 sec)