如何在JSON列Postgres中附加到嵌套数组
我的列具有下一个结构:
{
"_id": "57101c4efbea42d219e068b3",
"name": "System admin group",
"is_service": 0,
"security_lists": {
"actions": [
"ota upload",
"widgets manage",
"scheduled jobs manage all",
"users view"
]
}
}
如何将值附加到操作数组中? 我想可以使用JSONB_SET()完成它,但是我不知道该怎么做(
I have column with the next structure:
{
"_id": "57101c4efbea42d219e068b3",
"name": "System admin group",
"is_service": 0,
"security_lists": {
"actions": [
"ota upload",
"widgets manage",
"scheduled jobs manage all",
"users view"
]
}
}
How can I append value to actions array?
I suppose that it's can be done using jsonb_set() but I can't figure out how to do it(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)