更新时间:2023-10-25 GMT+08:00
soundex
soundex函数用于从str返回一个soundex字符串,如soundex('Miller')=M460。
命令格式
soundex(string <str>)
参数说明
参数 | 是否必选 | 参数类型 | 说明 |
|---|---|---|---|
str | 是 | STRING | 待转换的字符串。 |
返回值说明
返回STRING类型的值。

str值为NULL时,返回NULL。
示例代码
返回M460
SELECT soundex('Miller'); 父主题:字符串函数
soundex函数用于从str返回一个soundex字符串,如soundex('Miller')=M460。
soundex(string <str>)
参数 | 是否必选 | 参数类型 | 说明 |
|---|---|---|---|
str | 是 | STRING | 待转换的字符串。 |
返回STRING类型的值。

str值为NULL时,返回NULL。
返回M460
SELECT soundex('Miller');