Updated on 2026-11-06 GMT+08:00

soundex

The soundex function is used to return a Soundex string from str. For example, soundex('Miller') = M460.

Syntax

soundex(string str)

Parameters

Parameter

Mandatory

Type

Description

str

Yes

STRING

The string to be converted.

Return Values

Returns a value of type STRING.

If str is NULL, NULL is returned.

Example Code

Returns M460.

SELECT soundex('Miller');