Purpose
You can use this statement to drop an outline from OceanBase Database.
Syntax
DROP [FORMAT] OUTLINE outline_name
[BINDING_RULE (binding_item)];
binding_item:
SCOPE = {DATABASE | TENANT}
Parameters
Parameter |
Description |
|---|---|
| FORMAT | Optional. Indicates that a FORMAT OUTLINE (fuzzy outline) is to be dropped. |
| outline_name | The name of the outline to be dropped. |
| BINDING_RULE (binding_item) | Optional. Specifies the level at which the outline is dropped.
NoteFor V4.4.2, the |
Examples
Create a test table and a related outline, then delete them.
Create the
employeestable.obclient> CREATE TABLE employees (emp_id INT, emp_name VARCHAR(20));Insert test data into the
employeestable.obclient> INSERT INTO employees VALUES (1, 'John'), (2, 'Alice');Create an outline.
obclient> CREATE OUTLINE emp_query_outline ON SELECT * FROM employees WHERE emp_id=1;Drop the outline.
obclient> DROP OUTLINE emp_query_outline;Drop the test table.
obclient> DROP TABLE employees;