时间:2021-07-01 10:21:17 帮助过:10人阅读
mariadb> select number_stats(‘[1,2,3,4]‘); +---------------------------+ | number_stats(‘[1,2,3,4]‘) | +---------------------------+ | 3 | +---------------------------+ 1 row in set mariadb> select JSON_VALUE(‘{ "x": [0,1], "y": "[0,1]", "z": "Monty" }‘,‘$.z‘); +----------------------------------------------------------------+ | JSON_VALUE(‘{ "x": [0,1], "y": "[0,1]", "z": "Monty" }‘,‘$.z‘) | +----------------------------------------------------------------+ | Monty | +----------------------------------------------------------------+ 1 row in set mariadb> select JSON_VALUE(‘{ "x": [0,1], "y": "[0,1]", "z": "Monty" }‘,‘$.x ‘); +----------------------------------------------------------------+ | JSON_VALUE(‘{ "x": [0,1], "y": "[0,1]", "z": "Monty" }‘,‘$.x‘) | +----------------------------------------------------------------+ | NULL | +----------------------------------------------------------------+ 1 row in set mariadb> select JSON_VALUE(‘{ "x": [0,1], "y": "[0,1]", "z": "Monty" }‘,‘$.y ‘); +----------------------------------------------------------------+ | JSON_VALUE(‘{ "x": [0,1], "y": "[0,1]", "z": "Monty" }‘,‘$.y‘) | +----------------------------------------------------------------+ | [0,1] | +----------------------------------------------------------------+ 1 row in set
https://federico-razzoli.com/variable-number-of-parameters-and-optional-parameters-in-mysql-mariadb-procedures
https://mariadb.com/kb/en/library/json_extract/
mysql实现oracle存储过程默认参数
标签:var 导致 原来 限制 color lib min 参数 http