List:Internals« Previous MessageNext Message »
From:Sinisa Milivojevic Date:November 18 2002 1:05pm
Subject:Re: "strange" EXPLAIN result of a subselect ?
View as plain text  
On Sat, 16 Nov 2002 12:40:51 -0000
"Jocelyn Fournier" <joc@stripped> wrote:

> Well, I'm inserting :
> 
> INSERT INTO threadhardwarefr7 VALUES (1,1),(1,2);
> 
> And the subselect is done on the same table :
> 
> mysql> SELECT numreponse FROM threadhardwarefr7 WHERE numeropost='1'
>     ->  AND numreponse=(SELECT MAX(numreponse) FROM threadhardwarefr7
>     WHERE->  numeropost='1');
> +------------+
> | numreponse |
> +------------+
> |          2 |
> +------------+
> 1 row in set (0.02 sec)
> 
> Regards,
>   Jocelyn
> 

I think that this issue is well explained with HASH versus BTREE...

--

Regards,

--
For technical support contracts, go to https://order.mysql.com/?ref=msmi
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <sinisa@stripped>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, FullTime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com
Thread
"strange" EXPLAIN result of a subselect ?Jocelyn Fournier16 Nov
  • Re: "strange" EXPLAIN result of a subselect ?Benjamin Pflugmann16 Nov
  • Re: "strange" EXPLAIN result of a subselect ?Jocelyn Fournier16 Nov
  • Re: "strange" EXPLAIN result of a subselect ?Sinisa Milivojevic16 Nov
  • Re: "strange" EXPLAIN result of a subselect ?Sinisa Milivojevic16 Nov
  • Re: "strange" EXPLAIN result of a subselect ?Jocelyn Fournier16 Nov
    • Re: "strange" EXPLAIN result of a subselect ?Sinisa Milivojevic18 Nov