@@ -72,14 +72,30 @@ summary: 了解优化规则与表达式下推的黑名单。
72
72
73
73
# ## 已支持下推的表达式
74
74
75
- | 表达式分类 | 具体操作 |
76
- | :-- ------------ | :------------------------------------- |
77
- | [逻辑运算](/ functions- and - operators/ operators .md # 逻辑操作符) | AND (&&), OR (||), NOT (!) |
78
- | [比较运算](/ functions- and - operators/ operators .md # 比较方法和操作符) | <, <=, =, != (`<>`), >, >=, [`<=>`](https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#operator_equal-to), [`IN()`](https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#function_in), IS NULL, LIKE, IS TRUE, IS FALSE, [`COALESCE()`](https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#function_coalesce) |
79
- | [数值运算](/ functions- and - operators/ numeric - functions- and - operators .md ) | + , - , * , / , [` ABS()` ](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ mathematical- functions .html # function_abs), [`CEIL()`](https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html#function_ceil), [`CEILING()`](https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html#function_ceiling), [`FLOOR()`](https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html#function_floor) |
80
- | [控制流运算](/ functions- and - operators/ control- flow- functions .md ) | [` CASE` ](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ flow- control- functions .html # operator_case), [`IF()`](https://dev.mysql.com/doc/refman/5.7/en/flow-control-functions.html#function_if), [`IFNULL()`](https://dev.mysql.com/doc/refman/5.7/en/flow-control-functions.html#function_ifnull) |
81
- | [JSON 运算](/functions-and-operators/json-functions.md) | [JSON_TYPE(json_val)](https://dev.mysql.com/doc/refman/5.7/en/json-attribute-functions.html#function_json-type),<br/> [JSON_EXTRACT(json_doc, path[, path] ...)](https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html#function_json-extract),<br/> [JSON_UNQUOTE(json_val)](https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-unquote),<br/> [JSON_OBJECT(key, val[, key, val] ...)](https://dev.mysql.com/doc/refman/5.7/en/json-creation-functions.html#function_json-object),<br/> [JSON_ARRAY([val[, val] ...])](https://dev.mysql.com/doc/refman/5.7/en/json-creation-functions.html#function_json-array),<br/> [JSON_MERGE(json_doc, json_doc[, json_doc] ...)](https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-merge),<br/> [JSON_SET(json_doc, path, val[, path, val] ...)](https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-set),<br/> [JSON_INSERT(json_doc, path, val[, path, val] ...)](https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-insert),<br/> [JSON_REPLACE(json_doc, path, val[, path, val] ...)](https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-replace),<br/> [JSON_REMOVE(json_doc, path[, path] ...)](https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-remove) |
82
- | [日期运算](/ functions- and - operators/ date - and - time - functions .md ) | [` DATE_FORMAT()` ](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ date - and - time - functions .html # function_date-format) |
75
+ + -- -----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
76
+ | 表达式分类 | 具体操作 |
77
+ + :======================================================================== + :============================================================================================================================================================================================================================================================================================================================================================================================================== +
78
+ | [逻辑运算](/ functions- and - operators/ operators .md # 逻辑操作符) | AND (&&), OR (||), NOT (!) |
79
+ + -- -----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
80
+ | [比较运算](/ functions- and - operators/ operators .md # 比较方法和操作符) | \<, \<=, =, != (`<>`), \>, \>=, [`<=>`](https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#operator_equal-to), [`IN()`](https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#function_in), IS NULL, LIKE, IS TRUE, IS FALSE, [`COALESCE()`](https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#function_coalesce) |
81
+ + -- -----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
82
+ | [数值运算](/ functions- and - operators/ numeric - functions- and - operators .md ) | + , - , \* , / , [` ABS()` ](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ mathematical- functions .html # function_abs), [`CEIL()`](https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html#function_ceil), [`CEILING()`](https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html#function_ceiling), [`FLOOR()`](https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html#function_floor) |
83
+ + -- -----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
84
+ | [控制流运算](/ functions- and - operators/ control- flow- functions .md ) | [` CASE` ](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ flow- control- functions .html # operator_case), [`IF()`](https://dev.mysql.com/doc/refman/5.7/en/flow-control-functions.html#function_if), [`IFNULL()`](https://dev.mysql.com/doc/refman/5.7/en/flow-control-functions.html#function_ifnull) |
85
+ + -- -----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
86
+ | [JSON 运算](/ functions- and - operators/ json- functions .md ) | [JSON_TYPE(json_val)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- attribute- functions .html # function_json-type), |
87
+ | | [JSON_EXTRACT(json_doc, path \[, path \] ...)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- search- functions .html # function_json-extract), |
88
+ | | [JSON_UNQUOTE(json_val)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- modification- functions .html # function_json-unquote), |
89
+ | | [JSON_OBJECT(key, val\[, key, val\] ...)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- creation- functions .html # function_json-object), |
90
+ | | [JSON_ARRAY(\[val\[, val\] ...\])](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- creation- functions .html # function_json-array), |
91
+ | | [JSON_MERGE(json_doc, json_doc\[, json_doc\] ...)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- modification- functions .html # function_json-merge), |
92
+ | | [JSON_SET(json_doc, path , val\[, path , val\] ...)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- modification- functions .html # function_json-set), |
93
+ | | [JSON_INSERT(json_doc, path , val\[, path , val\] ...)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- modification- functions .html # function_json-insert), |
94
+ | | [JSON_REPLACE(json_doc, path , val\[, path , val\] ...)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- modification- functions .html # function_json-replace), |
95
+ | | [JSON_REMOVE(json_doc, path \[, path \] ...)](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ json- modification- functions .html # function_json-remove) |
96
+ + -- -----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
97
+ | [日期运算](/ functions- and - operators/ date - and - time - functions .md ) | [` DATE_FORMAT()` ](https:// dev .mysql .com/ doc/ refman/ 5 .7 / en/ date - and - time - functions .html # function_date-format) |
98
+ + -- -----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
83
99
84
100
# ## 禁止特定表达式下推
85
101
0 commit comments