Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
MySQL index key which one is the right way?
Hi all !
in MySQL table index key which one is the right way ?
key (branch)
key (reference)
key (date)
select * from transaction where branch=?m.branch and reference=?m.ref and date=?m.date order by branch,reference,date
or
key (branch,reference,date)
select * from transaction where branch=?m.branch and reference=?m.ref and date=?m.date order by branch
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement