mysql group_concat不带全部数据 [英] mysql group_concat not bringing entire data
本文介绍了mysql group_concat不带全部数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下查询并利用group_concat
函数.但是,有时answers
列中的数据会被截断.表示我无法获取全部数据,最后只是被砍掉了.
I am using the following query and utilizing the group_concat
function. However, at times the data in the answers
column is being cut off; meaning I don't get the entire data, in the end it is just chopped off.
我怀疑它可能与数据类型有关....可以将其转换为更大的数据类型吗?当前Other1
数据类型为text
I suspect it might have something to do with the datatype....can it be casted to a bigger datatype? Currently the Other1
datatype is text
select SiteName,
case
when group_concat(Other1) is not null
then group_concat( cast(Other1 AS BLOB))
when group_concat(Other1) is null
then 'No Response provided'
end
'answers'
from disparities_community_partnerships
where QuarterId=2
group by SiteName
推荐答案
查看全文