Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1411 connectés 

  FORUM HardWare.fr
  Programmation

  SELECT dans une table

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

SELECT dans une table

n°16159
Edwige
Posté le 27-02-2001 à 14:32:45  profilanswer
 

Supposons une table 'client' avec un champ 'prénom'.
Je voudrais connaître la liste des prénoms présents dans cette table, SANS AVOIR DE DOUBLONS (cad si j'ai deux fois 'Jean', celui-ci ne doit être présent qu'une seule fois dans la liste).
 
Comment dois-je écrire mon SELECT ?
Merci!

mood
Publicité
Posté le 27-02-2001 à 14:32:45  profilanswer
 

n°16161
Toxin
Carpe ★★ Vitam
Posté le 27-02-2001 à 14:34:36  profilanswer
 

SELECT DISTINCT prénom


---------------
"If you can walk away from a landing, it's a good landing. If you use the airplane the next day, it's an outstanding landing." - Chuck Yeager. | Chaîne YT | Photos
n°16162
Edwige
Posté le 27-02-2001 à 14:37:28  profilanswer
 

Merci infiniment Toxin ! :)

n°16184
irulan
Posté le 27-02-2001 à 16:00:07  profilanswer
 

Tu as oublié 'FROM Client' , Toxin ;):D

 

--Message édité par Irulan--

n°16186
Toxin
Carpe ★★ Vitam
Posté le 27-02-2001 à 16:10:50  profilanswer
 

Couillon, va :D


---------------
"If you can walk away from a landing, it's a good landing. If you use the airplane the next day, it's an outstanding landing." - Chuck Yeager. | Chaîne YT | Photos

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  SELECT dans une table

 

Sujets relatifs
PHP - Requete sur 2 champs dans une même tableCréation de table MySQL avec PHP....
Plus de sujets relatifs à : SELECT dans une table


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR