我正在尝试将group_concat选择为变量@s
在程序中,我正在使用此功能但出现错误
Error Code: 1406 Data too long for column 'result' at row 9552
SET SESSION group_concat_max_len = 4294967295;
SET @query=CONCAT(
'SELECT GROUP_CONCAT(\'<url><loc>https://www.example.com/product/\',seo_url,\'.html</loc></url>\' SEPARATOR \'\r\n\')FROM ',
@cpy,'products WHERE web_vis_each OR web_vis_pair ORDER BY group_id,position,make,model;'
);
--
PREPARE sql_query FROM @query;
EXECUTE sql_query;