我正在使用以下查詢並利用group_concat
函數。但是,有時answers
列中的數據正在被切斷;這意味着我沒有得到整個數據,最後它只是被切斷了。mysql group_concat不帶整個數據
我懷疑它可能與數據類型有關......可以將它轉換成更大的數據類型嗎?目前Other1
數據類型是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