Pergunta

I aggregate several texts from varchar(140) with GROUP_CONCAT fields in MySQL into a new table. Automatically the new field becomes of field type TEXT which according to the documentation should hold 65535 characters. Still it's only some of the texts characters that shows up in the new table (column "full_text" below). I've checked and there is more texts, and thus characters, that should be in the new tables column. I haven't changed anything in the MySQL server such as max_package_size, it's all default.

Here is my MySQL query:

DROP TABLE IF EXISTS tempsumdate;
CREATE TABLE tempsumdate ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_swedish_ci AS
SELECT tw.from_user, MONTH(tw.created_at) AS month, GROUP_CONCAT(tw.text) AS full_text  
FROM tweets AS tw
GROUP BY tw.from_user, month;´

What am I missing here?

Foi útil?

Solução

RTLM: http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat

by default group_concat() has a length limit of 1024 chars.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top