soundex() 是MySQL 的字符串函数。此方法返回一个 Soundex 字符串。
语法
select soundex(str);
示例 1
Select soundex('yxjc123');
输出:
mysql> Select soundex('yxjc123');
+--------------------+
| soundex('yxjc123') |
+--------------------+
| Y200 |
+--------------------+
1 row in set (0.00 sec)
示例 2
Select soundex('mysql');
输出:
mysql> Select soundex('mysql');
+------------------+
| soundex('mysql') |
+------------------+
| M240 |
+------------------+
1 row in set (0.00 sec)