标签:sql c js user rom json select on
SELECT
GROUP_CONCAT(
CONCAT(
CONCAT("{\"userName\": \"", userName, "\""),
CONCAT(", \"email: \"", email, "\"}")
)
)
AS json FROM User;
利用SQL语句直接得到JSON,布布扣,bubuko.com
标签:sql c js user rom json select on
原文地址:http://www.cnblogs.com/Smily-C/p/3891667.html