解决方法:JSON_EXTRACT
SELECT JSON_EXTRACT(summary,'$.tenderid') AS 'tenderid' FROM t_cms_doc
WHERE docid = '07590dd1cb5f466380251d42f04058f4';
结果带引号,并不能真正使用。
解决方法:REPLACE
SELECT REPLACE(JSON_EXTRACT(summary,'$.tenderid'),'"','') AS 'tenderid' FROM t_cms_doc
WHERE docid = '07590dd1cb5f466380251d42f04058f4';