Om du har MySQL version>=5.7 , då kan du prova detta:
SELECT JSON_EXTRACT(name, "$.id") AS name
FROM table
WHERE JSON_EXTRACT(name, "$.id") > 3
Utdata:
+-------------------------------+
| name |
+-------------------------------+
| {"id": "4", "name": "Betty"} |
+-------------------------------+
Kontrollera MySQL referensmanual för mer information:
https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html