【发布时间】:2014-11-10 08:39:23
【问题描述】:
我有以下代码
SELECT
GROUP_CONCAT(
CONCAT('{"id"', id, ','),
CONCAT('"COL1"', col1, ','),
CONCAT('"col2"', col2, ','),
CONCAT('"col3"', col3, ','),
CONCAT('"col4"', col4, '}')
SEPERATOR '\n')
AS json from tableX
整个 group_concat 返回 null。如果我删除了一个 concat(随机),它会起作用。
该表包含大约 1500 万行。 我已经设置了
SET SESSION group_concat_max_len = 188446744073709551615;
知道为什么它返回 null 吗?
【问题讨论】: