Languages
[Edit]
EN

MySQL - soundex usage example

5 points
Created by:
Teilsa
1315

In this short article, we would like to show how to use Soundex algorithm in MySQL.

Soundex is implemented by default in MySQL by SOUNDEX() function.

Practical example:

Warning: MySQL modifies Soundex algorithm a little to own way.

Output:

 

More complicated example

Edit

The below example shows how to group similar words/keywords with SOUNDEX().

With SOUNDEX()Without SOUNDEX()

Conclusion: groups are bigger
(SOUNDEX() used to transform keywords before equals operator was used).

Example output:

Conclusion: groups are smaller
(equals operator used to compare keywords).

 

Example output:

 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join