跳转到内容

使用 SQL 模式进行不匹配的模式匹配。返回 1(TRUE)或 0(FALSE)。如果 expr 或 pat 为 NULL,则结果为 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 │
└──────────┴────────────┘