根据通过MySQL GROUP_CONCAT 找到的转义这个我已经使用GROUP_CONCAT
SELECT
`topic_response`.`response`,
GROUP_CONCAT(`comment` SEPARATOR 0x1D ) AS `comment`,
`topic_response`.`add_date`
FROM `topic_response`
WHERE (topic_id = 286)
AND (`comment` IS NOT NULL)
GROUP BY `response`
ORDER BY `add_date` desc
然后我的输出被正确分离,但我不知道怎么做explode()
。
explode("0x1D", $comment) or explode("\0x1D", $comment)
这不起作用。