SELECT
GROUP_CONCAT(
CONCAT(
CONCAT("{\"userName\": \"", userName, "\""),
CONCAT(", \"email: \"", email, "\"}")
)
)
AS json FROM User;
2024-01-01 19:51:40
SELECT
GROUP_CONCAT(
CONCAT(
CONCAT("{\"userName\": \"", userName, "\""),
CONCAT(", \"email: \"", email, "\"}")
)
)
AS json FROM User;