Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4991
Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4993
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:4991) in /www/htdocs/v030397/mysql-qotd/wp-includes/feed-rss2-comments.php on line 8 Comments on: Question 45: Which of the following plans belongs to the query?
http://mysql-qotd.casperia.net/archives/340
mysql 5.0/5.1 questions for learning purposesFri, 06 Aug 2010 16:56:36 +0000http://wordpress.org/?v=abchourly1By: plogi
http://mysql-qotd.casperia.net/archives/340/comment-page-1#comment-51
plogiThu, 20 May 2010 18:58:48 +0000http://mysql-qotd.casperia.net/?p=340#comment-51<b>
c
Anwers a and b show possible keys, but in the query the subdate around fdate actually prevents index usage.
d is the plan for:
<pre>
explain select min(fdate),max(fdate),sum(fsum) from f1tst v1
where fdate>=subdate(NOW(),interval 10 day) and false;
</pre>
</b>
c
Anwers a and b show possible keys, but in the query the subdate around fdate actually prevents index usage.
d is the plan for:
explain select min(fdate),max(fdate),sum(fsum) from f1tst v1
where fdate>=subdate(NOW(),interval 10 day) and false;