
# soundex
soundex函数用于从str返回一个soundex字符串，如soundex('Miller')= M460。
#### 命令格式
```
soundex(string <str>)
```
#### 参数说明
表1参数说明 
| 参数  | 是否必选 | 参数类型   | 说明       |
|:---|:---|:---|:---|
| str | 是    | STRING | 待转换的字符串。 |
   
#### 返回值说明
返回STRING类型的值。
![](https://support.huaweicloud.com/sqlref-spark-dli/public_sys-resources/note_3.0-zh-cn.png)
str值为NULL时，返回NULL。
#### 示例代码
返回M460
```
SELECT soundex('Miller');
```
