wahsaga: MySQL - Query Statement gesucht

Beitrag lesen

hi,

und Dir dann Dein und mein Statement mit EXPLAIN auswerten lassen.

Ergebnis EXPLAIN meines Statements mit UNIQUE INDEX auf bdate:

id   select_type      table  type    poss_keys  key     key_len  ref     rows  Extra
1    PRIMARY          b1     range   bkey       bkey    767      NULL    1     Using where
3    DEPENDENT SUBQ.  b2     index   bdate      bdate   8        NULL    75    Using where
2    DEPENDENT SUBQ.  b2     index   bdate      bdate   8        NULL    75    Using where

Und deins unter gleichen Bedingungen:

id   select_type      table  type    poss_keys  key     key_len  ref     rows  Extra
1    PRIMARY          b1     range   bkey       bkey    767      NULL    1     Using where
4    DEPENDENT SUB.   b2     eq_ref  bdate      bdate   8        func    1     Using where
5    DEPENDENT SUB.   b3     index   bdate      bdate   8        NULL    75    Using where; Using index
2    DEPENDENT SUB.   b4     eq_ref  bdate      bdate   8        func    1     Using where
3    DEPENDENT SUB.   b5     index   bdate      bdate   8        NULL    75    Using where; Using index

(Auf bkey liegt übrigens auch noch ein UNIQUE INDEX.)

gruß,
wahsaga

--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }