<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MySQL &#8211; Can You Concatenate Strings From a Column Into a Single Row?</title>
	<atom:link href="http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/</link>
	<description>The life experiences of Adam Douglas.</description>
	<lastBuildDate>Wed, 01 Feb 2012 13:06:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: prakash</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-70982</link>
		<dc:creator>prakash</dc:creator>
		<pubDate>Sat, 30 Jul 2011 11:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-70982</guid>
		<description>how to delede ta which inserted with gruop_concat query in php.

thanks in advance.</description>
		<content:encoded><![CDATA[<p>how to delede ta which inserted with gruop_concat query in php.</p>
<p>thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SD (Aspherical)</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-24137</link>
		<dc:creator>SD (Aspherical)</dc:creator>
		<pubDate>Sat, 03 Jan 2009 21:53:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-24137</guid>
		<description>Just wanted to say thanks for posting this question and leaving all the feedback up!  This helped me significantly. 

Each photograph on my site has several descriptive attributes stored in a separate table (e.g. City, State) and linked by the photograph&#039;s unique ID.  While adding the ability to search to my site, it was no problem to search for Atlanta OR Georgia, but Atlanta AND Georgia wouldn&#039;t work because only the first attribute field was being returned.  Using GROUP_CONCAT to stuff all the attributes in the column into a field worked like a charm.</description>
		<content:encoded><![CDATA[<p>Just wanted to say thanks for posting this question and leaving all the feedback up!  This helped me significantly. </p>
<p>Each photograph on my site has several descriptive attributes stored in a separate table (e.g. City, State) and linked by the photograph&#8217;s unique ID.  While adding the ability to search to my site, it was no problem to search for Atlanta OR Georgia, but Atlanta AND Georgia wouldn&#8217;t work because only the first attribute field was being returned.  Using GROUP_CONCAT to stuff all the attributes in the column into a field worked like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rudy</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23776</link>
		<dc:creator>rudy</dc:creator>
		<pubDate>Mon, 08 Dec 2008 20:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23776</guid>
		<description>&quot;I never expected such a huge response.&quot;

heh

you would not have gotten such a huge response if you had moderated the first few replies that came in

when i posted (mine was #30) there were ~no~ previous comments visible

you gots to get more on da ball dan dat, adam</description>
		<content:encoded><![CDATA[<p>&#8220;I never expected such a huge response.&#8221;</p>
<p>heh</p>
<p>you would not have gotten such a huge response if you had moderated the first few replies that came in</p>
<p>when i posted (mine was #30) there were ~no~ previous comments visible</p>
<p>you gots to get more on da ball dan dat, adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23772</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 08 Dec 2008 17:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23772</guid>
		<description>Thanks to everyone for the awesome feedback. I never expected such a huge response. You all definitely answered my question.</description>
		<content:encoded><![CDATA[<p>Thanks to everyone for the awesome feedback. I never expected such a huge response. You all definitely answered my question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Papantonio</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23739</link>
		<dc:creator>Brian Papantonio</dc:creator>
		<pubDate>Sun, 07 Dec 2008 01:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23739</guid>
		<description>GROUP_CONCAT</description>
		<content:encoded><![CDATA[<p>GROUP_CONCAT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S. Nedregaard</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23735</link>
		<dc:creator>S. Nedregaard</dc:creator>
		<pubDate>Sat, 06 Dec 2008 19:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23735</guid>
		<description>Look up GROUP_CONCAT (and remember to set group_concat_max_len if you expect the result to exceed 512 characters.

http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html</description>
		<content:encoded><![CDATA[<p>Look up GROUP_CONCAT (and remember to set group_concat_max_len if you expect the result to exceed 512 characters.</p>
<p><a href="http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Volkmann</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23734</link>
		<dc:creator>Roland Volkmann</dc:creator>
		<pubDate>Sat, 06 Dec 2008 18:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23734</guid>
		<description>Please have a look on function GROUP_CONCAT() as described in section 11.12.1 of MySQL 5.1 Reference Manual.</description>
		<content:encoded><![CDATA[<p>Please have a look on function GROUP_CONCAT() as described in section 11.12.1 of MySQL 5.1 Reference Manual.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen S. Musoke</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23731</link>
		<dc:creator>Stephen S. Musoke</dc:creator>
		<pubDate>Sat, 06 Dec 2008 17:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23731</guid>
		<description>You can use the GROUP_CONCAT() function

SELECT WA.Web_Account_ID, GROUP_CONCAT(WAG.Web_Account_Group_Name_ID) /*Default is comma delimited but you can use different separators even return distinct values*/
FROM tblWebAccounts WA, tblWebAccountGroup WAG
WHERE WA.Web_Account_ID = WAG.Web_Account_ID /*Inner Join*/
GROUP BY WA.Web_Account_ID 
ORDER BY Web_Account_ID</description>
		<content:encoded><![CDATA[<p>You can use the GROUP_CONCAT() function</p>
<p>SELECT WA.Web_Account_ID, GROUP_CONCAT(WAG.Web_Account_Group_Name_ID) /*Default is comma delimited but you can use different separators even return distinct values*/<br />
FROM tblWebAccounts WA, tblWebAccountGroup WAG<br />
WHERE WA.Web_Account_ID = WAG.Web_Account_ID /*Inner Join*/<br />
GROUP BY WA.Web_Account_ID<br />
ORDER BY Web_Account_ID</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23729</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Sat, 06 Dec 2008 15:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23729</guid>
		<description>GROUP_CONCAT()</description>
		<content:encoded><![CDATA[<p>GROUP_CONCAT()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rudy</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23728</link>
		<dc:creator>rudy</dc:creator>
		<pubDate>Sat, 06 Dec 2008 14:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23728</guid>
		<description>use the GROUP_CONCAT function

;o)</description>
		<content:encoded><![CDATA[<p>use the GROUP_CONCAT function</p>
<p>;o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Birkholz</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23727</link>
		<dc:creator>Dennis Birkholz</dc:creator>
		<pubDate>Sat, 06 Dec 2008 10:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23727</guid>
		<description>Hi Adam,
have you ever heard of GROUP_CONCAT?

SELECT Web_Account_ID,
GROUP_CONCAT(Web_Account_Group_Name_ID)
FROM tblWebAccounts AS WA
LEFT JOIN tblWebAccountGroup AS WAG
	ON WAG.Web_Account_ID = WA.Web_Account_ID
GROUP BY WA.Web_Account_ID
ORDER BY WA.Web_Account_ID, WAG.Web_Account_Group_Name_ID

Greets,
Dennis</description>
		<content:encoded><![CDATA[<p>Hi Adam,<br />
have you ever heard of GROUP_CONCAT?</p>
<p>SELECT Web_Account_ID,<br />
GROUP_CONCAT(Web_Account_Group_Name_ID)<br />
FROM tblWebAccounts AS WA<br />
LEFT JOIN tblWebAccountGroup AS WAG<br />
	ON WAG.Web_Account_ID = WA.Web_Account_ID<br />
GROUP BY WA.Web_Account_ID<br />
ORDER BY WA.Web_Account_ID, WAG.Web_Account_Group_Name_ID</p>
<p>Greets,<br />
Dennis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Daems</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23725</link>
		<dc:creator>Mark Daems</dc:creator>
		<pubDate>Sat, 06 Dec 2008 09:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23725</guid>
		<description>Is there something wrong with the mysql group_concat function? http://dev.mysql.com/doc/refman/5.1/en/group-by-functions.html#function_group-concat

Mark</description>
		<content:encoded><![CDATA[<p>Is there something wrong with the mysql group_concat function? <a href="http://dev.mysql.com/doc/refman/5.1/en/group-by-functions.html#function_group-concat" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/group-by-functions.html#function_group-concat</a></p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antony Curtis</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23724</link>
		<dc:creator>Antony Curtis</dc:creator>
		<pubDate>Sat, 06 Dec 2008 06:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23724</guid>
		<description>Check this link...
http://dev.mysql.com/doc/refman/4.1/en/group-by-functions.html#function_group-concat</description>
		<content:encoded><![CDATA[<p>Check this link&#8230;<br />
<a href="http://dev.mysql.com/doc/refman/4.1/en/group-by-functions.html#function_group-concat" rel="nofollow">http://dev.mysql.com/doc/refman/4.1/en/group-by-functions.html#function_group-concat</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Lowe</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23723</link>
		<dc:creator>Ryan Lowe</dc:creator>
		<pubDate>Sat, 06 Dec 2008 06:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23723</guid>
		<description>Are you looking for something like the following?

SELECT 
Web_Account_ID,
GROUP_CONCAT(
  DISTINCT Web_Account_Group_Name_ID
  ORDER BY Web_Account_Group_Name_ID
SEPARATOR &#039;,&#039;) AS GroupNameConcat
FROM tblWebAccounts WA
GROUP BY Web_Account_ID
ORDER BY Web_Account_ID;

More info on GROUP_CONCAT is available at http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat</description>
		<content:encoded><![CDATA[<p>Are you looking for something like the following?</p>
<p>SELECT<br />
Web_Account_ID,<br />
GROUP_CONCAT(<br />
  DISTINCT Web_Account_Group_Name_ID<br />
  ORDER BY Web_Account_Group_Name_ID<br />
SEPARATOR &#8216;,&#8217;) AS GroupNameConcat<br />
FROM tblWebAccounts WA<br />
GROUP BY Web_Account_ID<br />
ORDER BY Web_Account_ID;</p>
<p>More info on GROUP_CONCAT is available at <a href="http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/comment-page-1/#comment-23722</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Sat, 06 Dec 2008 05:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/#comment-23722</guid>
		<description>Hi,

Use GROUP_CONCAT(). Please see my two posts on the subject:
http://code.openark.org/blog/?p=246
and
http://code.openark.org/blog/?p=126

Regards,
Shlomi</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Use GROUP_CONCAT(). Please see my two posts on the subject:<br />
<a href="http://code.openark.org/blog/?p=246" rel="nofollow">http://code.openark.org/blog/?p=246</a><br />
and<br />
<a href="http://code.openark.org/blog/?p=126" rel="nofollow">http://code.openark.org/blog/?p=126</a></p>
<p>Regards,<br />
Shlomi</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.adamsdesk.com/be/archives/2008/12/05/mysql-can-you-concatenate-strings-from-a-column-into-a-single-row/feed/ ) in 1.80771 seconds, on Feb 11th, 2012 at 9:54 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 11th, 2012 at 10:54 am UTC -->
