<?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 for Blog for IT technical details</title>
	<atom:link href="http://blog.servtrek.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.servtrek.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Thu, 29 Jul 2010 21:07:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on install Ubuntu Server Edition by Simple Rails production server setup in Ubuntu Part 1 &#124; Blog for IT technical details</title>
		<link>http://blog.servtrek.com/applicationdevelopment/27/install-ubuntu-server-edition/comment-page-1/#comment-7</link>
		<dc:creator>Simple Rails production server setup in Ubuntu Part 1 &#124; Blog for IT technical details</dc:creator>
		<pubDate>Tue, 14 Apr 2009 18:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.servtrek.com/?p=27#comment-7</guid>
		<description>[...] First you need to set up Ubuntu server. You can get Ubuntu server edition. There is an excellent post showing you how to set up Ubuntu server. I will show you very simple way late when I have time. [...]</description>
		<content:encoded><![CDATA[<p>[...] First you need to set up Ubuntu server. You can get Ubuntu server edition. There is an excellent post showing you how to set up Ubuntu server. I will show you very simple way late when I have time. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple Rails production server setup in Ubuntu by Simple Rails production server setup in Ubuntu Part 1 &#124; Blog for IT technical details</title>
		<link>http://blog.servtrek.com/applicationdevelopment/22/simple-rails-production-server-setup-in-ubuntu/comment-page-1/#comment-6</link>
		<dc:creator>Simple Rails production server setup in Ubuntu Part 1 &#124; Blog for IT technical details</dc:creator>
		<pubDate>Tue, 14 Apr 2009 18:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.servtrek.com/?p=22#comment-6</guid>
		<description>[...] For the software used, please refer toSimple Rails production server setup in Ubuntu post. [...]</description>
		<content:encoded><![CDATA[<p>[...] For the software used, please refer toSimple Rails production server setup in Ubuntu post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get all the Tables in mySQL database by bo</title>
		<link>http://blog.servtrek.com/database_use/14/get-all-the-tables-in-mysql-database/comment-page-1/#comment-4</link>
		<dc:creator>bo</dc:creator>
		<pubDate>Tue, 07 Apr 2009 14:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.servtrek.com/?p=14#comment-4</guid>
		<description>There might be a problem with previous comment.

Here is the new one.

DELIMITER /
 CREATE PROCEDURE GetAlltablesCount()
   BEGIN
 	DECLARE done INT DEFAULT 0;
  	DECLARE atablename CHAR(160);
	DECLARE cur1 CURSOR FOR SELECT table_name FROM information_schema.tables WHERE table_schema = 'yourdatabasename' ORDER BY table_name DESC;

	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;

  OPEN cur1;
  REPEAT
	FETCH cur1 INTO atablename ;
    IF NOT done THEN
	SET @select_tablequery := CONCAT("select '",atablename, "'," , 'count(*) from n2_development.', atablename,' ' , atablename);
	PREPARE queryTable_stmt FROM @select_tablequery;
       EXECUTE queryTable_stmt;
	
       DEALLOCATE PREPARE queryTable_stmt;

    END IF;
  UNTIL done END REPEAT;

  CLOSE cur1;


   END /
 DELIMITER ;

Then call GetAlltablesCount();

to get all table counts.</description>
		<content:encoded><![CDATA[<p>There might be a problem with previous comment.</p>
<p>Here is the new one.</p>
<p>DELIMITER /<br />
 CREATE PROCEDURE GetAlltablesCount()<br />
   BEGIN<br />
 	DECLARE done INT DEFAULT 0;<br />
  	DECLARE atablename CHAR(160);<br />
	DECLARE cur1 CURSOR FOR SELECT table_name FROM information_schema.tables WHERE table_schema = &#8216;yourdatabasename&#8217; ORDER BY table_name DESC;</p>
<p>	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;</p>
<p>  OPEN cur1;<br />
  REPEAT<br />
	FETCH cur1 INTO atablename ;<br />
    IF NOT done THEN<br />
	SET @select_tablequery := CONCAT(&#8221;select &#8216;&#8221;,atablename, &#8220;&#8216;,&#8221; , &#8216;count(*) from n2_development.&#8217;, atablename,&#8217; &#8216; , atablename);<br />
	PREPARE queryTable_stmt FROM @select_tablequery;<br />
       EXECUTE queryTable_stmt;</p>
<p>       DEALLOCATE PREPARE queryTable_stmt;</p>
<p>    END IF;<br />
  UNTIL done END REPEAT;</p>
<p>  CLOSE cur1;</p>
<p>   END /<br />
 DELIMITER ;</p>
<p>Then call GetAlltablesCount();</p>
<p>to get all table counts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Get all the Tables in mySQL database by bo</title>
		<link>http://blog.servtrek.com/database_use/14/get-all-the-tables-in-mysql-database/comment-page-1/#comment-3</link>
		<dc:creator>bo</dc:creator>
		<pubDate>Tue, 07 Apr 2009 13:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.servtrek.com/?p=14#comment-3</guid>
		<description>You can use stored procedure to get all table counts.

DELIMITER /
 CREATE PROCEDURE GetAlltablesCount()
   BEGIN
 	DECLARE done INT DEFAULT 0;
  	DECLARE atablename CHAR(160);
	DECLARE cur1 CURSOR FOR SELECT table_name FROM information_schema.tables WHERE table_schema = 'yourdatabasename' ORDER 

BY table_name DESC;

	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;

  OPEN cur1;
  REPEAT
	FETCH cur1 INTO atablename ;
    IF NOT done THEN
	SELECT @atablename , count(*) FROM @atablename b;
    END IF;
  UNTIL done END REPEAT;

  CLOSE cur1;


   END /
 DELIMITER ;

then call GetAlltablesCount();

to get all table counts.</description>
		<content:encoded><![CDATA[<p>You can use stored procedure to get all table counts.</p>
<p>DELIMITER /<br />
 CREATE PROCEDURE GetAlltablesCount()<br />
   BEGIN<br />
 	DECLARE done INT DEFAULT 0;<br />
  	DECLARE atablename CHAR(160);<br />
	DECLARE cur1 CURSOR FOR SELECT table_name FROM information_schema.tables WHERE table_schema = &#8216;yourdatabasename&#8217; ORDER </p>
<p>BY table_name DESC;</p>
<p>	DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;</p>
<p>  OPEN cur1;<br />
  REPEAT<br />
	FETCH cur1 INTO atablename ;<br />
    IF NOT done THEN<br />
	SELECT @atablename , count(*) FROM @atablename b;<br />
    END IF;<br />
  UNTIL done END REPEAT;</p>
<p>  CLOSE cur1;</p>
<p>   END /<br />
 DELIMITER ;</p>
<p>then call GetAlltablesCount();</p>
<p>to get all table counts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
