How to modify field with jsonPath in PostgreSQL?

若如初见. 提交于 2021-01-28 02:54:46

问题


How to modify a field using jsonPath in PostgreSQL like SQL Server JSON_MODIFY (https://docs.microsoft.com/en-us/sql/t-sql/functions/json-modify-transact-sql?view=sql-server-ver15)?

Thanks!


回答1:


There are currently no ways to update JSON properties using JsonPath. The only way is with jsonb query jsonb_set



来源:https://stackoverflow.com/questions/62006261/how-to-modify-field-with-jsonpath-in-postgresql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!