hamming()

The Hamming distance between to strings, i.e., the number of positions with different characters for two strings of equal length. Strings must be of equal length. Characters of different cases (e.g., a and A) are considered different.

Arguments & returns

hamming(s1, s2)

Scalar
Overload link s1s2 Returns
#01 VARCHARVARCHAR BIGINT

Example

hamming example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.