我正在寻找一种在mysql更新查询中清除/删除特定(嵌套)json对象中所有数据的方法。
我已经尝试了很多JSON_SEARCH / JSON_REMOVE查询,但是根本没有使它工作。甚至不知道是否可能。
现在是json数组:
"dressing": [{
"skin": {
"beard": 0,"chest": 0,"arms": 0,"skin": 0,"hair": 0
},"label": "test"
}],"data": [{
"test": {
"test1": 0,"test2": 0,"test3": 0,"test4": 0,"test5": 0
},"label": "test"
}]
}
这就是我想要的:
"dressing": [],"label": "test"
}]
}
那么,有人可以帮助我吗?