<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018778" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018778</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110845</link>
    <description> &lt;p&gt;This would be interesting to find out. Using COUNT would probably be faster up to a certain point (depending on number of records), then the SHOW TABLE.. command would probably be faster.&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Jun 2002 12:33:16 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1110845 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110836</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by korndragon &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;but what would take more resources? using 10 queryies to get specific information, or use i sql querie that has to return every bit on information about the 10 tables? &lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I think the SHOW TABLE STATUS FROM databasename is pretty safe to use. You could test them though! Make 2 scripts, one with the SHOW STASTUS and one with 10 queries or whatever and then use &lt;a href=&quot;http://www.php.net/manual/en/function.microtime.php&quot; class=&quot;bb-url&quot;&gt;microtime()&lt;/a&gt; to get the exact time before and after the queries. Then subtract the time before from the time after for each script and you&#039;ll be left with the processing time for each script. Finally post the results here so we can see them too.&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Jun 2002 06:35:59 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1110836 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110834</link>
    <description> &lt;p&gt;let me just ask all you sql masters (lol), how would YOU get this information? Think about if you were trying to make your scripts efficient.... how would you work this problem?&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Jun 2002 05:47:54 +0000</pubDate>
 <dc:creator>korndragon</dc:creator>
 <guid isPermaLink="false">comment 1110834 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110833</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by Peter J. Boettcher &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;SQL only allows for one top level COUNT statement. If you want more than one then you have to use sub-queries, for example:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;select&lt;br /&gt;
CountTutorials=(select count(*) from tutorials),&lt;br /&gt;
CountResources=(select count(*) from resources)&lt;/p&gt;
&lt;p&gt;And so on, you can add WHERE clauses to your sub-queries. &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;damnit, why cant mysql be that simple? I saw that they are implementing sub-queries in 4.1&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Jun 2002 05:46:13 +0000</pubDate>
 <dc:creator>korndragon</dc:creator>
 <guid isPermaLink="false">comment 1110833 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110832</link>
    <description> &lt;p&gt;but what would take more resources? using 10 queryies to get specific information, or use i sql querie that has to return every bit on information about the 10 tables?&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Jun 2002 05:44:31 +0000</pubDate>
 <dc:creator>korndragon</dc:creator>
 <guid isPermaLink="false">comment 1110832 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110821</link>
    <description> &lt;p&gt;Each table&#039;s information is return in a row with the following columns:&lt;/p&gt;
&lt;p&gt;Name&lt;br /&gt;
Type&lt;br /&gt;
Row_format&lt;br /&gt;
&lt;strong&gt;Rows&lt;/strong&gt;&lt;br /&gt;
Avg_row_length&lt;br /&gt;
Data_length&lt;br /&gt;
Max_data_length&lt;br /&gt;
Index_length&lt;br /&gt;
Data_free&lt;br /&gt;
Auto_increment&lt;br /&gt;
Create_time&lt;br /&gt;
Update_time&lt;br /&gt;
Check_time&lt;br /&gt;
Create_options&lt;br /&gt;
Comment&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Jun 2002 17:57:43 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1110821 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110817</link>
    <description> &lt;p&gt;I don&#039;t have a lot of experience with mySQL, but I&#039;m guessing that commands returns other info too. Does it return the values as separate fields/rows or one large string that has to be parsed?&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Jun 2002 17:26:59 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1110817 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110816</link>
    <description> &lt;p&gt;Interesting. Have you guys tried the &quot;SHOW TABLE STATUS FROM databasename&quot;? It is very useful for getting rowcount and such from all tables in a database.&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Jun 2002 16:19:48 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1110816 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110814</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Quoted from mySQL docs: &lt;a href=&quot;http://www.mysql.com/doc/A/N/ANSI_diff_Sub-selects.html&quot; class=&quot;bb-url&quot;&gt;1.7.4.1 SubSELECTs&lt;/a&gt;&lt;/em&gt;&lt;strong&gt;&lt;br /&gt;
MySQL Server currently only supports nested queries of the form INSERT ... SELECT ... and REPLACE ... SELECT .... You can, however, use the function IN() in other contexts. Subselects are currently being implemented in the 4.1 development tree.&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
 </description>
     <pubDate>Wed, 26 Jun 2002 16:03:55 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1110814 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/another-sql-question#comment-1110809</link>
    <description> &lt;p&gt;Maybe it doesn&#039;t, I was just refering to the Transact-SQL standard. OOps...&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Jun 2002 14:18:05 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1110809 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
