This Oracle tutorial explains how to use the Oracle/PLSQL SOUNDEX function with syntax and examples.
Description
The Oracle/PLSQL SOUNDEX function returns a phonetic representation (the way it sounds) of a string.
Syntax
The syntax for the SOUNDEX function in Oracle/PLSQL is:
Parameters or Arguments
string1
The string whose phonetic value will be returned.
Returns
The SOUNDEX function returns a string value.
Note
The SOUNDEX function algorithm works as follows:
The SOUNDEX function return value will always begin with the first letter of string1.
The SOUNDEX function uses only the first 5 consonants to determine the NUMERIC portion of the return value, except if the first letter of string1 is a vowel.
The SOUNDEX function is not case-sensitive. What this means is that both uppercase and lowercase characters will generate the same SOUNDEX function return value.
Applies To
The SOUNDEX function can be used in the following versions of Oracle/PLSQL: