mysql 更新json字段

2021/6/11 19:24:07

本文主要是介绍mysql 更新json字段,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

 

UPDATE project_moduleinfo
SET module_attrs = REPLACE (
module_attrs,
'}}',
'},"hw-prod": {"namespace": "hw-prod", "profile": "prod", "cpu": {"request": "100m", "limit": "2"},"mem": {"request": "2Gi", "limit": "2Gi"}, "replicas": 1, "logs": "/data/dubbo/logs","schedpolicy": "default", "is_integrationtest": false, "kube_cluster": "hw-online","custom_param": "", "skip_deploy": false}}'
);

 

 



这篇关于mysql 更新json字段的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程