<?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 SQL Queries in a Stored Procedure.</title>
	<atom:link href="http://www.think-lamp.com/2008/12/multiple-sql-queries-in-a-stored-procedure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.think-lamp.com/2008/12/multiple-sql-queries-in-a-stored-procedure/</link>
	<description>Everything Linux Apache Php Mysql</description>
	<lastBuildDate>Tue, 24 Aug 2010 06:49:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Moksha</title>
		<link>http://www.think-lamp.com/2008/12/multiple-sql-queries-in-a-stored-procedure/comment-page-1/#comment-3793</link>
		<dc:creator>Moksha</dc:creator>
		<pubDate>Sat, 26 Dec 2009 22:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-lamp.com/?p=121#comment-3793</guid>
		<description>What to say I was looking for something like this and its so simple and fast, I wanted learn about 30plus count and I also dont want to open a connection 30 times. 

but your post really help me.

thanks</description>
		<content:encoded><![CDATA[<p>What to say I was looking for something like this and its so simple and fast, I wanted learn about 30plus count and I also dont want to open a connection 30 times. </p>
<p>but your post really help me.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pooja</title>
		<link>http://www.think-lamp.com/2008/12/multiple-sql-queries-in-a-stored-procedure/comment-page-1/#comment-3411</link>
		<dc:creator>pooja</dc:creator>
		<pubDate>Tue, 22 Sep 2009 07:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-lamp.com/?p=121#comment-3411</guid>
		<description>how to work on procedures using functions???plz tell fast...</description>
		<content:encoded><![CDATA[<p>how to work on procedures using functions???plz tell fast&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lev</title>
		<link>http://www.think-lamp.com/2008/12/multiple-sql-queries-in-a-stored-procedure/comment-page-1/#comment-2475</link>
		<dc:creator>lev</dc:creator>
		<pubDate>Mon, 20 Jul 2009 17:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-lamp.com/?p=121#comment-2475</guid>
		<description>Great!

Last week I needed the same and had to use somethin like:

declare @a int 
declare @b int

select @a = count(ID) from table_1 
select @b = count(ID) from table_b

select @a, @b

This one is much better.</description>
		<content:encoded><![CDATA[<p>Great!</p>
<p>Last week I needed the same and had to use somethin like:</p>
<p>declare @a int<br />
declare @b int</p>
<p>select @a = count(ID) from table_1<br />
select @b = count(ID) from table_b</p>
<p>select @a, @b</p>
<p>This one is much better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shanesh Chavan</title>
		<link>http://www.think-lamp.com/2008/12/multiple-sql-queries-in-a-stored-procedure/comment-page-1/#comment-1828</link>
		<dc:creator>Shanesh Chavan</dc:creator>
		<pubDate>Fri, 26 Jun 2009 08:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-lamp.com/?p=121#comment-1828</guid>
		<description>&gt; 10 opens , 10 closes

By the way, take a look at connection pooling ;)

&gt;  Timur I. Says:

That first comment is link spam (designed to affect Google PageRank).</description>
		<content:encoded><![CDATA[<p>&gt; 10 opens , 10 closes</p>
<p>By the way, take a look at connection pooling <img src='http://www.think-lamp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&gt;  Timur I. Says:</p>
<p>That first comment is link spam (designed to affect Google PageRank).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shanesh Chavan</title>
		<link>http://www.think-lamp.com/2008/12/multiple-sql-queries-in-a-stored-procedure/comment-page-1/#comment-1827</link>
		<dc:creator>Shanesh Chavan</dc:creator>
		<pubDate>Fri, 26 Jun 2009 08:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-lamp.com/?p=121#comment-1827</guid>
		<description>&gt; this would mean I would have to make 10 connections
&gt; to the database and 10 opens , 10 closes, phew !

This is not correct, the new MySQL protocol (version 10) allows you to have multiple queries running concurrently over the same connection.  Each is assigned a uniqe statement_id by the server.

This is described in the prepared statement API part of the &quot;MySQL Internals&quot; document.

(But okay, most of the MySQL drivers has per default disabled use of the prepared statement API.  Apparently there are some unresolved bugs in the server when using it.)</description>
		<content:encoded><![CDATA[<p>&gt; this would mean I would have to make 10 connections<br />
&gt; to the database and 10 opens , 10 closes, phew !</p>
<p>This is not correct, the new MySQL protocol (version 10) allows you to have multiple queries running concurrently over the same connection.  Each is assigned a uniqe statement_id by the server.</p>
<p>This is described in the prepared statement API part of the &#8220;MySQL Internals&#8221; document.</p>
<p>(But okay, most of the MySQL drivers has per default disabled use of the prepared statement API.  Apparently there are some unresolved bugs in the server when using it.)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
