-
-
Save kasramp/34502b2ce7afafd24f01eab3b7fdce9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE user; | |
SELECT JSON_ARRAYAGG(JSON_OBJECT('id', id, 'firstName', first_name, 'lastName', last_name, 'age', age)) FROM users; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment