Text & patterns
Scalar
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 | str1 | str2 |
Returns |
|---|---|---|---|
| #01 | VARCHAR | VARCHAR |
BIGINT |
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
Catalog examples
SELECT
hamming('duck', 'luck');