Aller au contenu

Effectue une correspondance de motif à l’aide d’un motif SQL. Renvoie 1 (TRUE) ou 0 (FALSE). Si expr ou pat est NULL, le résultat est NULL.

<column>.like('plaid%')
my_clothes.like('plaid%)
┌─────────────────┐
│ my_clothes │
├─────────────────┤
│ plaid pants │
│ plaid hat │
│ plaid shirt │
└─────────────────┘
<expr> LIKE <pattern>
SELECT name, category FROM system.functions WHERE name like 'tou%' ORDER BY name;
┌──────────┬────────────┐
│ name │ category │
├──────────┼────────────┤
│ touint16 │ conversion │
│ touint32 │ conversion │
│ touint64 │ conversion │
│ touint8 │ conversion │
└──────────┴────────────┘