« MySQL/Opérateurs » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 282 :
Utilisations courantes de <code>LIKE</code> :
 
* FindTrouver titlestous startingles withtitres thecommençant wordpar "hello" :
<source lang=sql>
SELECT * FROM articles WHERE title LIKE 'hello%'
</source>
 
* FindTrouver titlestous endingles withtitres thefinissant wordpar "world" :
<source lang=sql>
SELECT * FROM articles WHERE title LIKE '%world'
</source>
 
* FindTrouver titlestous containingles thetitres wordcontenant la chaine "gnu" :
<source lang=sql>
SELECT * FROM articles WHERE title LIKE '%gnu%'