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}}'
);

 

 

上一篇:[转]PHP错误日志


下一篇:定时清理k8s-docker的日志,清理磁盘空间