Recherche multichamp Mysql

Bonjour,

Je cherche une requete mysql de type SELECT * from table WHERE XX LIKE '%toto%'

Je voudrais que XX soit remplacé par tous les champs de la table, y'a t-il une solution de ce type ?
Configuration: Windows XP
Firefox 3.0.10

1 réponse

  1. Bonjour,

    Faire un and pour chaque champ :

    SELECT * from table WHERE champ1 LIKE '%toto%' AND chap2 LIKE '%toto%' etc