Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ EXPLAIN BASIC SELECT /*+ LEADING(t0 (t1 t2)) USE_NL((t1 t2)) */ * FROM t0, t1, t
+-----------------------------------------------------------------------------------------------------------------------+
```

> **Notice**
> **Note**
>
> The `USE_NL`, `USE_HASH`, and `USE_MERGE` hints are usually used with the `LEADING` hint because the optimizer generates a plan based on the hint semantics only when the right-side table in the join matches `table_name_list`.
>
Expand Down Expand Up @@ -1311,7 +1311,7 @@ For an application that you already launched, if a plan selected by the optimize

OceanBase Database supports creating an outline based on `SQL_TEXT` or `SQL_ID`, where `SQL_TEXT` is the original SQL statement with parameters.

> **Notice**
> **Note**
>
> To create an outline, you must go to the corresponding database.

Expand All @@ -1336,7 +1336,7 @@ CREATE [OR REPLACE] OUTLINE <outline_name> ON <stmt>;
WHERE col1 = 4 AND col2 = 6 ORDER BY 2 TO SELECT * FROM tbl1 WHERE col1 = 4 AND col2 = 6 ORDER BY 2;
```

> **Notice**
> **Note**
>
> When you specify `target_stmt`, you must ensure that `stmt` exactly matches `target_stmt` when hints are removed.

Expand Down Expand Up @@ -1419,7 +1419,7 @@ DROP OUTLINE otl_t1_full;
CREATE OUTLINE otl_t1_idx_c2 ON "ED570339F2C856BA96008A29EDF04C74" USING HINT /*+ INDEX(t1 idx_c2)*/ ;
```

> **Notice**
> **Note**
>
> - A hint is specified in the `/*+ xxx*/` format.
>
Expand Down Expand Up @@ -1648,4 +1648,4 @@ Here are some examples:

```sql
ALTER OUTLINE otl2 ON SELECT /*+ USE_NL(tbl2) MAX_CONCURRENT(1) */ * FROM t WHERE c1 = ?;
```
```