Closed aborruso closed 2 years ago
Solved. The default driver is sqlite, then I have loaded json1 extension and changed a little the syntax (in example from $country
to $.country
:
trdsql -ijson "SELECT id, name, JSON_EXTRACT(attribute,'$.country'), JSON_EXTRACT(attribute,'$.color') FROM tmp.json"
Thank you for the issue. JSON_EXTRACT (attribute,'$ .country') is correct as you wrote.
It's a mistake that json_extract doesn't output anything on error, but it seems to be a problem with sqlite3.
Hi, first of all thank you for this great tool.
I'm trying to use the documentation page to reply JSON_EXTRACT example, My input is
If I run the below command I have nothing.
I'm using trdsql version v0.9.0.
What's wrong in my command?
Thank you