<?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: Multiple row operations in MySQL / PHP</title>
	<atom:link href="http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/</link>
	<description>Blog about web development and Internet entrepreneurship</description>
	<lastBuildDate>Sat, 04 Feb 2012 15:46:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Chinh Dung</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-1246</link>
		<dc:creator>Chinh Dung</dc:creator>
		<pubDate>Thu, 05 Jan 2012 17:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-1246</guid>
		<description>Thank, i choose insert multiple. I can insert more more rows and many users on my page using insert in one time.</description>
		<content:encoded><![CDATA[<p>Thank, i choose insert multiple. I can insert more more rows and many users on my page using insert in one time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChrisRaven</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-925</link>
		<dc:creator>ChrisRaven</dc:creator>
		<pubDate>Mon, 20 Sep 2010 20:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-925</guid>
		<description>Hi,

There actually is a way to update multiple rows in one UPDATE query, e.g.:

UPDATE table
SET updated_field = CASE tested_field
WHEN tested_field_value1 THEN updated_field_value1
WHEN tested_field_value2 THEN updated_field_value2
-- etc.
ELSE updated_field -- important part!
END

It works at least in MySQL. Probably in other databases too.

Best regards,
ChrisRaven</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>There actually is a way to update multiple rows in one UPDATE query, e.g.:</p>
<p>UPDATE table<br />
SET updated_field = CASE tested_field<br />
WHEN tested_field_value1 THEN updated_field_value1<br />
WHEN tested_field_value2 THEN updated_field_value2<br />
&#8211; etc.<br />
ELSE updated_field &#8212; important part!<br />
END</p>
<p>It works at least in MySQL. Probably in other databases too.</p>
<p>Best regards,<br />
ChrisRaven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChrisRaven</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-1088</link>
		<dc:creator>ChrisRaven</dc:creator>
		<pubDate>Mon, 20 Sep 2010 20:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-1088</guid>
		<description>Hi,

There actually is a way to update multiple rows in one UPDATE query, e.g.:

UPDATE table
SET updated_field = CASE tested_field
WHEN tested_field_value1 THEN updated_field_value1
WHEN tested_field_value2 THEN updated_field_value2
-- etc.
ELSE updated_field -- important part!
END

It works at least in MySQL. Probably in other databases too.

Best regards,
ChrisRaven</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>There actually is a way to update multiple rows in one UPDATE query, e.g.:</p>
<p>UPDATE table<br />
SET updated_field = CASE tested_field<br />
WHEN tested_field_value1 THEN updated_field_value1<br />
WHEN tested_field_value2 THEN updated_field_value2<br />
&#8211; etc.<br />
ELSE updated_field &#8212; important part!<br />
END</p>
<p>It works at least in MySQL. Probably in other databases too.</p>
<p>Best regards,<br />
ChrisRaven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tony</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-914</link>
		<dc:creator>tony</dc:creator>
		<pubDate>Tue, 13 Jul 2010 11:24:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-914</guid>
		<description>Very useful post. Thanx.

Is there a way to be able to insert + on duplicate update multiple rows using a single query?</description>
		<content:encoded><![CDATA[<p>Very useful post. Thanx.</p>
<p>Is there a way to be able to insert + on duplicate update multiple rows using a single query?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tony</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-1087</link>
		<dc:creator>tony</dc:creator>
		<pubDate>Tue, 13 Jul 2010 11:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-1087</guid>
		<description>Very useful post. Thanx.

Is there a way to be able to insert + on duplicate update multiple rows using a single query?</description>
		<content:encoded><![CDATA[<p>Very useful post. Thanx.</p>
<p>Is there a way to be able to insert + on duplicate update multiple rows using a single query?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bonita</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-831</link>
		<dc:creator>bonita</dc:creator>
		<pubDate>Tue, 20 Oct 2009 02:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-831</guid>
		<description>hi! what is the best way of inserting multiple entries into one table?

For example: 10 employees to be inserted in one click with their name, email, address.. etc...

Please help..thanks.</description>
		<content:encoded><![CDATA[<p>hi! what is the best way of inserting multiple entries into one table?</p>
<p>For example: 10 employees to be inserted in one click with their name, email, address.. etc&#8230;</p>
<p>Please help..thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bonita</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-1086</link>
		<dc:creator>bonita</dc:creator>
		<pubDate>Tue, 20 Oct 2009 02:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-1086</guid>
		<description>hi! what is the best way of inserting multiple entries into one table?

For example: 10 employees to be inserted in one click with their name, email, address.. etc...

Please help..thanks.</description>
		<content:encoded><![CDATA[<p>hi! what is the best way of inserting multiple entries into one table?</p>
<p>For example: 10 employees to be inserted in one click with their name, email, address.. etc&#8230;</p>
<p>Please help..thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shantanu Oak</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-771</link>
		<dc:creator>Shantanu Oak</dc:creator>
		<pubDate>Wed, 15 Jul 2009 15:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-771</guid>
		<description>Thanks for the tip.
I have one question.
 
&gt;&gt; At 2560 rows inserted, it took the loop
What if I need to send tens of thousands of records?
Will the server have any issues?</description>
		<content:encoded><![CDATA[<p>Thanks for the tip.<br />
I have one question.</p>
<p>&gt;&gt; At 2560 rows inserted, it took the loop<br />
What if I need to send tens of thousands of records?<br />
Will the server have any issues?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shantanu Oak</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-1085</link>
		<dc:creator>Shantanu Oak</dc:creator>
		<pubDate>Wed, 15 Jul 2009 15:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-1085</guid>
		<description>Thanks for the tip.
I have one question.
 
&gt;&gt; At 2560 rows inserted, it took the loop
What if I need to send tens of thousands of records?
Will the server have any issues?</description>
		<content:encoded><![CDATA[<p>Thanks for the tip.<br />
I have one question.</p>
<p>&gt;&gt; At 2560 rows inserted, it took the loop<br />
What if I need to send tens of thousands of records?<br />
Will the server have any issues?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thomas</title>
		<link>http://www.techfounder.net/2009/05/14/multiple-row-operations-in-mysql-php/comment-page-1/#comment-769</link>
		<dc:creator>thomas</dc:creator>
		<pubDate>Sat, 06 Jun 2009 19:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.techfounder.net/?p=229#comment-769</guid>
		<description>hi i have 3 tables  like a ,b c 
where a  contains employee detail , b contains details of item consumed by each employee and c contains different types of items, one user can have many items

so table b will have more than  one entries of same id


i want to show  in a pattern  like below in webpage

employee 1--  item1 --- item2 --- item 3 --item4
employee 2--  item1 --- &#039;  &#039;--- item 3 --item4
employee --  item1 --- item2 --- item 3 --item4-- item5

i want to fetch the  details in above pattern


i get result in query as belowe

employee1 - item1
employee1-item2
--

---

how could i fetch the details in the patern i want</description>
		<content:encoded><![CDATA[<p>hi i have 3 tables  like a ,b c<br />
where a  contains employee detail , b contains details of item consumed by each employee and c contains different types of items, one user can have many items</p>
<p>so table b will have more than  one entries of same id</p>
<p>i want to show  in a pattern  like below in webpage</p>
<p>employee 1&#8211;  item1 &#8212; item2 &#8212; item 3 &#8211;item4<br />
employee 2&#8211;  item1 &#8212; &#8216;  &#8216;&#8212; item 3 &#8211;item4<br />
employee &#8212;  item1 &#8212; item2 &#8212; item 3 &#8211;item4&#8211; item5</p>
<p>i want to fetch the  details in above pattern</p>
<p>i get result in query as belowe</p>
<p>employee1 &#8211; item1<br />
employee1-item2<br />
&#8211;</p>
<p>&#8212;</p>
<p>how could i fetch the details in the patern i want</p>
]]></content:encoded>
	</item>
</channel>
</rss>

