Skip to content

Commit

Permalink
sys var: add more contents to tidb_remove_orderby_in_subquery (#18530)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxsd authored Aug 9, 2024
1 parent dcb5db4 commit 8868481
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -4953,6 +4953,8 @@ SHOW WARNINGS;
- Type: Boolean
- Default value: Before v7.2.0, the default value is `OFF`. Starting from v7.2.0, the default value is `ON`.
- Specifies whether to remove `ORDER BY` clause in a subquery.
- In the ISO/IEC SQL standard, `ORDER BY` is mainly used to sort the results of top-level queries. For subqueries, the standard does not require that the results be sorted by `ORDER BY`.
- To sort subquery results, you can usually handle it in the outer query, such as using the window function or using `ORDER BY` again in the outer query. Doing so ensures the order of the final result set.
### tidb_replica_read <span class="version-mark">New in v4.0</span>
Expand Down

0 comments on commit 8868481

Please sign in to comment.