[sql]enregistrement vide avec NOT IN
Résolu/Fermé
afrodje
Messages postés
759
Date d'inscription
mardi 13 mars 2007
Statut
Membre
Dernière intervention
22 janvier 2014
-
19 nov. 2008 à 09:13
afrodje Messages postés 759 Date d'inscription mardi 13 mars 2007 Statut Membre Dernière intervention 22 janvier 2014 - 26 nov. 2008 à 18:35
afrodje Messages postés 759 Date d'inscription mardi 13 mars 2007 Statut Membre Dernière intervention 22 janvier 2014 - 26 nov. 2008 à 18:35
A voir également:
- [sql]enregistrement vide avec NOT IN
- Formate pour taxer client frigo vide ✓ - Forum Matériel & Système
- Internat nourriture - Forum Loisirs / Divertissements
- Not in a hypervisor partition (hvp=0) (verr_nem_not_available). - Forum VirtualBox
- Coeur vide ✓ - Forum Facebook
- Supprimer page vide word - Guide
2 réponses
afrodje
Messages postés
759
Date d'inscription
mardi 13 mars 2007
Statut
Membre
Dernière intervention
22 janvier 2014
168
26 nov. 2008 à 18:35
26 nov. 2008 à 18:35
Effectivement c'est bon.
Merci
Merci
Droopy_
Messages postés
248
Date d'inscription
dimanche 16 novembre 2008
Statut
Membre
Dernière intervention
17 janvier 2009
25
20 nov. 2008 à 04:56
20 nov. 2008 à 04:56
J'ai testé sous Linux :
Ça ne rend qu'un seul résultat : 10.
mysql> select * from A; +---------+ | NumeroA | +---------+ | 1 | | 2 | | 3 | | 4 | | 5 | | 10 | +---------+ 6 rows in set (0.00 sec) mysql> select * from B; +---------+ | NumeroB | +---------+ | 1 | | 2 | | 3 | | 4 | | 5 | +---------+ 5 rows in set (0.00 sec) mysql> SELECT numeroA -> FROM A -> WHERE numeroA NOT -> IN ( -> -> SELECT numeroB -> FROM B -> ); +---------+ | numeroA | +---------+ | 10 | +---------+ 1 row in set (0.00 sec)
Ça ne rend qu'un seul résultat : 10.