【发布时间】:2021-04-19 13:36:10
【问题描述】:
我的 JSON 示例
{"feeds": [{"trait": "Bankrupt", "rating": "medium", "observation": "mortgage problems", "riskscaling": "4"}, {"trait": "Incompetency", "rating": "high", "observation": "work problems", "riskscaling": "5"}, {"trait": "Mental Stress", "rating": "low", "observation": "personal problems", "riskscaling": "3"}], "ad_uidNumber": "2021041913", "ad_employeeID": "tom.banks"}
我收到错误
警告 |第3156章从第 1 行的 json_search 列中的 CAST 到 INTEGER 的 JSON 值无效 |
当我按 qry as 时
select distinct globalusers.id
from globalusers
where (JSON_SEARCH(dynamic_attributes->>'$.feeds[*].trait','all', 'Bankrupt'));
谁能帮帮我。
【问题讨论】: