Przejdź do głównej zawartości

Dopasowywanie wzorca za pomocą wzorca SQL. Zwraca 1 (TRUE) lub 0 (FALSE). Jeśli expr lub pat ma wartość NULL, wynikiem jest 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 │
└──────────┴────────────┘