LEVENSHTEIN

Computes the Levenshtein distance between two input expressions.

Syntax

LEVENSHTEIN(expression1 varchar, expression2 varchar) → int

  • expression1: The first string expression.

  • expression2: The second string expression.

Examples

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

Last updated