I have a MySQL table named computers
with a column named details
that is json data type formatted. I've inserted a value like this in that column:
'{ "name": "Chrome", "os": "Windows", "resolution": { "x": 1680, "y": 1050 } }'
I can simple get Chrome
value by the following query:
SELECT details ->> '$.name' FROM computers
Now I want to know, how can I get 1680
value (which is the value of x
) ?