Error number: 3967; Symbol: ER_MULTIPLE_JSON_VALUES; SQLSTATE: 22034
Message: More than one value was found by ‘%s’ on the specified path.
错误说明:ER_MULTIPLE_JSON_VALUES错误表示,JSON列中存在多个值。
解决方法:针对诸如这种情况,可以使用JSON_ARRAY()函数将多个JSON值封装到单个JSON值中。例如,可以将:
{“name”: “X”,”color”: “red”},{“name”: “Y”, “color”: “blue”}
封装为:
JSON_ARRAY({“name”: “X”,”color”: “red”}, {“name”: “Y”, “color”: “blue”})