数据库
首页 > 数据库> > mysql里使用JSON_EXTRACT取值

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'

 

     
     
     
    

标签:00,signStatusName,param,JSON,123,signName,mysql,EXTRACT,original
来源: https://www.cnblogs.com/tiancai/p/16370230.html