11.10.4 JSON_DEPTH(json_doc)函数
JSON_DEPTH(json_doc)函数返回JSON数据的最大深度。使用示例如下:
mysql> SELECT JSON_DEPTH(content) FROM test_json WHERE id = 1;
+---------------------+
| JSON_DEPTH(content) |
+---------------------+
| 3 |
+---------------------+
1 row in set (0.05 sec)