Skip to contents

The minimum number of single-character edits (insertions, deletions or substitutions) required to change one string to the other. Characters of different cases (e.g., a and A) are considered different.

Usage

levenshtein(s1, s2)

Arguments

s1, s2

VARCHAR

Value

BIGINT

SQL examples

levenshtein('duck', 'db')