<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: GROUP_CONCAT useful GROUP BY extension</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/</link>
	<description>Everything about MySQL Performance</description>
	<pubDate>Tue, 02 Dec 2008 13:26:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Murz</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-357744</link>
		<dc:creator>Murz</dc:creator>
		<pubDate>Thu, 25 Sep 2008 05:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-357744</guid>
		<description>A litte problem I had with the group_concat function was when selecting integers only I was getting a blob instead of a string to solve this I used a CONCAT:

SELECT  CONCAT(GROUP_CONCAT(myInt),'') myInts FROM aTable;</description>
		<content:encoded><![CDATA[<p>A litte problem I had with the group_concat function was when selecting integers only I was getting a blob instead of a string to solve this I used a CONCAT:</p>
<p>SELECT  CONCAT(GROUP_CONCAT(myInt),&#8221;) myInts FROM aTable;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kestas</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-322065</link>
		<dc:creator>Kestas</dc:creator>
		<pubDate>Thu, 03 Jul 2008 09:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-322065</guid>
		<description>Has MySQL rollup, cubes or grouping sets like Oracle?</description>
		<content:encoded><![CDATA[<p>Has MySQL rollup, cubes or grouping sets like Oracle?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-320040</link>
		<dc:creator>Eduardo</dc:creator>
		<pubDate>Mon, 30 Jun 2008 14:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-320040</guid>
		<description>Hi, is it possible to use some kind of argument in group_concat that allows it to group 2 by 2? p.ex:
SELECT id,client_id FROM services WHERE id = 3;
+----+-----------+
&#124; id &#124; client_id &#124;
+----+-----------+
&#124;  3 &#124;         5 &#124; 
&#124;  3 &#124;         6 &#124; 
&#124;  3 &#124;         7 &#124;
&#124;  3 &#124;         8 &#124; 
&#124;  3 &#124;         9 &#124; 
&#124;  3 &#124;        10 &#124; 
&#124;  3 &#124;        11 &#124; 
+----+-----------+
 
SELECT id,GROUP_CONCAT(client_id,2) FROM services WHERE id = 3 GROUP BY id;     
+----+-------------------------+
&#124; id &#124; GROUP_CONCAT(client_id) &#124;
+----+-------------------------+
&#124;  3 &#124; 5,6                     &#124; 
+----+-------------------------+ 
&#124;  3 &#124; 6,7                     &#124; 
+----+-------------------------+ 
&#124;  3 &#124; 7,8                     &#124; 
+----+-------------------------+ 
&#124;  3 &#124; 8,9                     &#124; 
+----+-------------------------+ 
&#124;  3 &#124; 9,10                    &#124; 
+----+-------------------------+ 
&#124;  3 &#124; 10,11                   &#124; 
+----+-------------------------+ 
Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, is it possible to use some kind of argument in group_concat that allows it to group 2 by 2? p.ex:<br />
SELECT id,client_id FROM services WHERE id = 3;<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8211;+<br />
| id | client_id |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8211;+<br />
|  3 |         5 |<br />
|  3 |         6 |<br />
|  3 |         7 |<br />
|  3 |         8 |<br />
|  3 |         9 |<br />
|  3 |        10 |<br />
|  3 |        11 |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8211;+</p>
<p>SELECT id,GROUP_CONCAT(client_id,2) FROM services WHERE id = 3 GROUP BY id;<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| id | GROUP_CONCAT(client_id) |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|  3 | 5,6                     |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|  3 | 6,7                     |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|  3 | 7,8                     |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|  3 | 8,9                     |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|  3 | 9,10                    |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
|  3 | 10,11                   |<br />
+&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DHIRAJ</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-312586</link>
		<dc:creator>DHIRAJ</dc:creator>
		<pubDate>Thu, 12 Jun 2008 07:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-312586</guid>
		<description>where i can get my.cnf file or
how to set global</description>
		<content:encoded><![CDATA[<p>where i can get my.cnf file or<br />
how to set global</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-312441</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Wed, 11 Jun 2008 17:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-312441</guid>
		<description>group_concat_max_len=4096 in my.cnf 
or SET GLOBAL group_concat_max_len=4096</description>
		<content:encoded><![CDATA[<p>group_concat_max_len=4096 in my.cnf<br />
or SET GLOBAL group_concat_max_len=4096</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DHIRAJ</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-312291</link>
		<dc:creator>DHIRAJ</dc:creator>
		<pubDate>Wed, 11 Jun 2008 03:52:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-312291</guid>
		<description>how to extent the limit of group concat &#62; 1024</description>
		<content:encoded><![CDATA[<p>how to extent the limit of group concat &gt; 1024</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-309791</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Fri, 06 Jun 2008 22:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-309791</guid>
		<description>There is group_concat_max_len server variable, which by default is 1024</description>
		<content:encoded><![CDATA[<p>There is group_concat_max_len server variable, which by default is 1024</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DHIRAJ</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-309414</link>
		<dc:creator>DHIRAJ</dc:creator>
		<pubDate>Fri, 06 Jun 2008 06:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-309414</guid>
		<description>GROUP_CONCAT IS VERY NICE, BUT THERE IS A LIMIT UPTO 1024, CAN WE INCREASE THE LIMIT? IF YES PLEASE</description>
		<content:encoded><![CDATA[<p>GROUP_CONCAT IS VERY NICE, BUT THERE IS A LIMIT UPTO 1024, CAN WE INCREASE THE LIMIT? IF YES PLEASE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rizwan</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-299252</link>
		<dc:creator>Rizwan</dc:creator>
		<pubDate>Thu, 15 May 2008 07:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-299252</guid>
		<description>I have created a table (with only 2 fields) with the following query

   1.CREATE TABLE `users` (
   2.`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
   3.`name` VARCHAR( 20 ) NOT NULL
   4.) ENGINE = MYISAM ;"

There are 20,000 users in this table with ids from 1 to 20,000
On executing the following query
Code: ( text )

   1. select group_concat(id separator ',') from users

returns only 283 ids separated with ','</description>
		<content:encoded><![CDATA[<p>I have created a table (with only 2 fields) with the following query</p>
<p>   1.CREATE TABLE `users` (<br />
   2.`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,<br />
   3.`name` VARCHAR( 20 ) NOT NULL<br />
   4.) ENGINE = MYISAM ;&#8221;</p>
<p>There are 20,000 users in this table with ids from 1 to 20,000<br />
On executing the following query<br />
Code: ( text )</p>
<p>   1. select group_concat(id separator &#8216;,&#8217;) from users</p>
<p>returns only 283 ids separated with &#8216;,&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-236117</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 30 Jan 2008 18:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/#comment-236117</guid>
		<description>My sincere thanks to  - 6. paul carey for publishing this fix - you saved my sanity.</description>
		<content:encoded><![CDATA[<p>My sincere thanks to  - 6. paul carey for publishing this fix - you saved my sanity.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
