<?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 does not support variables with LIMIT in stored procedures</title>
	<atom:link href="http://www.rustyrazorblade.com/2007/05/mysql-does-not-support-variables-with-limit-in-stored-procedures/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com/2007/05/mysql-does-not-support-variables-with-limit-in-stored-procedures/</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Fri, 03 Sep 2010 03:50:22 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Federico</title>
		<link>http://www.rustyrazorblade.com/2007/05/mysql-does-not-support-variables-with-limit-in-stored-procedures/comment-page-1/#comment-9090</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Wed, 18 Jul 2007 17:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2007/05/17/mysql-does-not-support-variables-with-limit-in-stored-procedures/#comment-9090</guid>
		<description>what can I say? give it a try, it is working for me on a MySQL 5.0.37 version server running on Windows</description>
		<content:encoded><![CDATA[<p>what can I say? give it a try, it is working for me on a MySQL 5.0.37 version server running on Windows</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proteo2000</title>
		<link>http://www.rustyrazorblade.com/2007/05/mysql-does-not-support-variables-with-limit-in-stored-procedures/comment-page-1/#comment-9070</link>
		<dc:creator>proteo2000</dc:creator>
		<pubDate>Wed, 18 Jul 2007 02:21:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2007/05/17/mysql-does-not-support-variables-with-limit-in-stored-procedures/#comment-9070</guid>
		<description>Sorry but according the manual you cannot use prepare or execute instructions on a procedure or function</description>
		<content:encoded><![CDATA[<p>Sorry but according the manual you cannot use prepare or execute instructions on a procedure or function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico</title>
		<link>http://www.rustyrazorblade.com/2007/05/mysql-does-not-support-variables-with-limit-in-stored-procedures/comment-page-1/#comment-9056</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Tue, 17 Jul 2007 13:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2007/05/17/mysql-does-not-support-variables-with-limit-in-stored-procedures/#comment-9056</guid>
		<description>you can prepare an statement and then execute it with a variable limit, e.g.,

CREATE PROCEDURE `All`(in off int, in lmt int)
BEGIN

set @a = off;
set @b = lmt;
prepare stmt from &quot;select * from table1 limit ?,?&quot;;
execute stmt using @a,@b;

END $$</description>
		<content:encoded><![CDATA[<p>you can prepare an statement and then execute it with a variable limit, e.g.,</p>
<p>CREATE PROCEDURE `All`(in off int, in lmt int)<br />
BEGIN</p>
<p>set @a = off;<br />
set @b = lmt;<br />
prepare stmt from &#8220;select * from table1 limit ?,?&#8221;;<br />
execute stmt using @a,@b;</p>
<p>END $$</p>
]]></content:encoded>
	</item>
</channel>
</rss>
