想要在mysql查询中删除对象内的所有json数据

我正在寻找一种在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"
    }]
}

那么,有人可以帮助我吗?

an_day 回答:想要在mysql查询中删除对象内的所有json数据

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3167305.html

大家都在问