I have to query the citizenId in JSON column named id_card to see whether it's '1103701468998' or '1555123407115' or not.
Somehow, I can't query from the table with JSON_EXTRACT() as below 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')
its return with Empty set, 1 warning (0.01 sec)
However, I can query like this
select * from (
SELECT
case_id, application_id, status, user_id, id_card -> "$.citizenId" as CID
from lending_application
) a
where a.cid in
('1103701468998')
Is this a JSON_EXTRACT() limitation?