Przejdź do głównej zawartości

Sprawdza brak dopasowania do wzorca SQL. Zwraca 1 (TRUE) lub 0 (FALSE). Jeśli expr lub pat ma wartość NULL, wynikiem jest NULL.

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