MySQL JSON Path 键为数字的错误
小子在使用mysql的json时,键是数字,按常规方法访问:SET @j = '{"0": {"a":1, "b":2}, "other": {"c": 3, "d": 4}}';SELECT JSON_EXTRACT(@j, '$.0.a') AS '$.0.a'但是报了一个异常:Invalid JSON path expression. The error is around ch...
原创
2019-04-29 16:45:33 ·
6624 阅读 ·
0 评论