What is the use of SOUNDS LIKE operator in MySQL?

With the help of SOUNDS LIKE operator, MySQL search the similar sound values from the table.


Expression1 SOUNDS LIKE Expression2

Here, both Expression1 and Expression2 will be compared based on their English pronunciation of sound.


Following is an example from ‘student’ table which will match the two expressions based on the pronunciation of sound −

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)