mysql里使用JSON_EXTRACT取值

2022/6/14 6:21:11

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

{"contractStatusName":"拒签","msg":"操作成功","reason":"123","signers":[{"signName":"123","signStatus":4,"phoneNum":"123","userType":1,"signCode":"123","signStatusName":"签署完成","signOrder":1},{"signName":"北京外企人力资源服务有限公司","signStatus":1,"phoneNum":"18911869539","userType":2,"signCode":"9111010574470043X2","signStatusName":"待我签","signOrder":2}],"templateNo":"123","code":20000,"contractStatus":3,"contractId":"123","contractName":"劳动合同书-MFP","templateId":"123"}

 

--取到姓名
  SELECT JSON_EXTRACT(original_param, '$.signers[0].signName'), original_param 'o1' from fesco_sys_invoke_log where original_param like '%签署完成%'
     and  create_time>'2022-04-11 00:00:00' and create_time<'2022-06-01'

 

     
     
     
    



这篇关于mysql里使用JSON_EXTRACT取值的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程