hamming()

The number of positions with different characters for 2 strings of equal length. Different case is considered different

Arguments & returns

hamming(str1, str2)

Scalar
Overload link str1str2 Returns
#01 VARCHARVARCHAR BIGINT

Example

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

Engine example · Run to view results.

Catalog examples

SELECT
  hamming('duck', 'luck');