Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 566 Bytes

levenshtein.md

File metadata and controls

21 lines (15 loc) · 566 Bytes
description
Computes the Levenshtein distance between two input expressions.

LEVENSHTEIN

Syntax

LEVENSHTEIN(expression1 varchar, expression2 varchar) → int

  • expression1: The first string expression.
  • expression2: The second string expression.

Examples

{% code title="LEVENSHTEIN example" %}

SELECT LEVENSHTEIN('spice', 'iceberg')
-- 6

{% endcode %}