Skip to content

Pattern matching using an SQL pattern. Returns 1 (TRUE) or 0 (FALSE). If either expr or pat is NULL, the result is 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 │
└──────────┴────────────┘