Skip to content

Instantly share code, notes, and snippets.

@sloanlance
Last active August 2, 2017 19:12
Show Gist options
  • Save sloanlance/1ff8e5334c85bcc42224145f6024d66b to your computer and use it in GitHub Desktop.
Save sloanlance/1ff8e5334c85bcc42224145f6024d66b to your computer and use it in GitHub Desktop.
MySQL, JSONL: An example of a MySQL query returning JSONL.
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]"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment