MySQL中SOUNDS LIKE运算子有什么用?
在SOUNDSLIKE运算符的帮助下,MySQL从表中搜索相似的声音值。
语法
Expression1 SOUNDS LIKE Expression2
在这里,将基于声音的英语发音来比较Expression1和Expression2。
示例
以下是“学生”表中的示例,该示例将基于声音的发音匹配两个表达式-
mysql> Select Id, Name, Address, Subject from student where name sounds like 'garav'; +------+--------+---------+-----------+ | Id | Name | Address | Subject | +------+--------+---------+-----------+ | 1 | Gaurav | Delhi | Computers | | 20 | Gaurav | Jaipur | Computers | +------+--------+---------+-----------+ 2 rows in set (0.00 sec)