J'ai la table suivante, je voudrais faire un select distinct sur la colonne [code], je n'ai pas besoin d'obtenir le "A" trois fois.Construire un select distinct sur mysql (zend_db)
[ ID ] [ CODE ] [ LIBELLE ]
1 A LIBELLE1
2 B LIBELLE2
3 C LIBELLE3
4 A LIBELLE4
5 A LIBELLE5
6 D LIBELLE6
Je veux le résultat comme suit
[ ID ] [ CODE ] [ LIBELLE ]
1 A LIBELLE1
2 B LIBELLE2
3 C LIBELLE3
6 D LIBELLE6
Je n'arrive pas à comprendre votre format? –