Skip to content

Commit

Permalink
fix SQL format
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt committed Sep 19, 2022
1 parent 2841229 commit 2a42f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explain-subqueries.md
Expand Up @@ -226,7 +226,7 @@ The following is an example:
CREATE TABLE t(a INT, b INT);
CREATE TABLE s(a INT, b INT);
EXPLAIN SELECT (a, b) NOT IN (SELECT * FROM s) FROM t;
EXPLAIN SELECT * FROM t WHERE (a, b) NOT IN (select * FROM s);
EXPLAIN SELECT * FROM t WHERE (a, b) NOT IN (SELECT * FROM s);
```

```sql
Expand All @@ -242,7 +242,7 @@ tidb> EXPLAIN SELECT (a, b) NOT IN (SELECT * FROM s) FROM t;
+-----------------------------+----------+-----------+---------------+---------------------------------------------------------------------------------------------+
5 rows in set (0.00 sec)

tidb> EXPLAIN SELECT * FROM t WHERE (a, b) NOT IN (select * FROM s);
tidb> EXPLAIN SELECT * FROM t WHERE (a, b) NOT IN (SELECT * FROM s);
+-----------------------------+----------+-----------+---------------+----------------------------------------------------------------------------------+
| id | estRows | task | access object | operator info |
+-----------------------------+----------+-----------+---------------+----------------------------------------------------------------------------------+
Expand Down

0 comments on commit 2a42f67

Please sign in to comment.