{MySQL} if avec condition qui contient un mot
Allard
-
giheller Messages postés 1960 Date d'inscription Statut Membre Dernière intervention -
giheller Messages postés 1960 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'aimerais dans un if verifier si le contenu du champ contient tel mot.
Exemple : dans mon champ j'ai (208-212-301dfalsdkfj)
Je veux qu'il me retourne jjjjjj212jjjjj si le champ contient 212
Est-ce que quelqu'un peut m'aider.
Merci
Linda
J'aimerais dans un if verifier si le contenu du champ contient tel mot.
Exemple : dans mon champ j'ai (208-212-301dfalsdkfj)
Je veux qu'il me retourne jjjjjj212jjjjj si le champ contient 212
Est-ce que quelqu'un peut m'aider.
Merci
Linda
Configuration: Windows XP Safari 532.5
2 réponses
-
bonsoir,
select champ from table where champs like '%212%'; -
bonsoir,
ce kien vous iraity-il ?
https://forums.commentcamarche.net/forum/affich-14305999-mysql-if-statements