SELECT dans SELECT ?
Résolu/Fermé
Sinistrus
Messages postés
1010
Date d'inscription
mercredi 12 décembre 2007
Statut
Membre
Dernière intervention
6 juin 2023
-
4 avril 2017 à 17:27
jee pee Messages postés 41186 Date d'inscription mercredi 2 mai 2007 Statut Modérateur Dernière intervention 29 avril 2025 - 4 avril 2017 à 19:27
jee pee Messages postés 41186 Date d'inscription mercredi 2 mai 2007 Statut Modérateur Dernière intervention 29 avril 2025 - 4 avril 2017 à 19:27
A voir également:
- SELECT dans SELECT ?
- Please select boot device - Forum Windows 7
- Reboot and select proper boot device or insert boot media in selected boot device and press a key ✓ - Forum Windows 10
- Reboot and select proper boot device ✓ - Forum PC portable
- Reboot and select proper boot device - Forum Windows
- Problème reboot and select proper boot device + clavier - Forum PC fixe
1 réponse
jee pee
Messages postés
41186
Date d'inscription
mercredi 2 mai 2007
Statut
Modérateur
Dernière intervention
29 avril 2025
9 607
4 avril 2017 à 17:51
4 avril 2017 à 17:51
Salut,
D'abord mettre des parenthèses et utiliser XOR qui équivaut à (a AND (NOT b)) OR ((NOT a) and b) :
cdlt
D'abord mettre des parenthèses et utiliser XOR qui équivaut à (a AND (NOT b)) OR ((NOT a) and b) :
SELECT * FROM table WHERE Pseudo<>'' AND ((Lettre1='P' AND Lettre2='A' AND Lettre3='Q' AND Lettre4='U' AND Lettre5='E' AND Lettre6='T') XOR Lettre7='BONJOUR') ORDER BY NumId ASC LIMIT 20
- j'ignore si les parenthèses dans un select d'une chaine php causent soucis
cdlt
4 avril 2017 à 17:57
Oui oui, ça fonctionne en tout ça avec les parenthèses ! Merci beaucoup !
Modifié le 4 avril 2017 à 19:28
est valable si a, si b et aussi si a ET b : c'était ton soucis
alors que est valable si a, si b mais pas si a ET b