我必须查询名为 id_card 的 JSON 列中的citizenId,以查看它是“1103701468998”还是“1555123407115”。
不知何故,我无法使用 JSON_EXTRACT() 从表中查询如下 sql
select * from (
SELECT
case_id, application_id, status, user_id, id_card -> "$.citizenId" as CID
from lending_application
) a
where a.cid in
('1103701468998','1555123407115')
它的回报与Empty set, 1 warning (0.01 sec)
但是,我可以这样查询
select * from (
SELECT
case_id, application_id, status, user_id, id_card -> "$.citizenId" as CID
from lending_application
) a
where a.cid in
('1103701468998')
这是 JSON_EXTRACT() 限制吗?