Hvis du har MySQL version>=5.7 , så kan du prøve dette:
SELECT JSON_EXTRACT(name, "$.id") AS name
FROM table
WHERE JSON_EXTRACT(name, "$.id") > 3
Output:
+-------------------------------+
| name |
+-------------------------------+
| {"id": "4", "name": "Betty"} |
+-------------------------------+
Se venligst MySQL referencemanualen for flere detaljer:
https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html