Given: A users
table in MySQL containing the data from the file 1-users.tsv
.
Running the SQL query from the file 2-mysqlJsonl.sql
gives the results shown in the file 3-results.jsonl
.
Given: A users
table in MySQL containing the data from the file 1-users.tsv
.
Running the SQL query from the file 2-mysqlJsonl.sql
gives the results shown in the file 3-results.jsonl
.
username | ||
---|---|---|
mike | [email protected] | |
jane | [email protected] | |
stan | [email protected] |
SELECT json_object( | |
'username', username, | |
'email', email | |
) AS json | |
FROM `users` |
{"username": "mike", "email": "[email protected]"} | |
{"username": "jane", "email": "[email protected]"} | |
{"username": "stan", "email": "[email protected]"} |