콘텐츠로 이동

SQL 패턴을 사용한 패턴 일치를 수행합니다. 1(TRUE) 또는 0(FALSE)을 반환합니다. expr 또는 pat 중 하나라도 NULL이면 결과는 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 │
└──────────┴────────────┘