Collections:
SOUNDEX() - Soundex Encoding
How to perform Soundex encoding on a given string using the SOUNDEX() function?
✍: FYIcenter.com
SOUNDEX(str) is a MySQL built-in function that
returns the Soundex coding of a given string.
Soundex is a phonetic algorithm for indexing names by sound,
as pronounced in English.
For example:
SELECT SOUNDEX('Sophia'), SOUNDEX('Sofia');
-- +-------------------+------------------+
-- | SOUNDEX('Sophia') | SOUNDEX('Sofia') |
-- +-------------------+------------------+
-- | S100 | S100 |
-- +-------------------+------------------+
Reference information of the SOUNDEX() function:
SOUNDEX(str): code Returns a soundex string from str, or NULL if str is NULL. Two strings that sound almost the same should have identical soundex strings. Arguments, return value and availability: str: Required. The string that will be Soundex encoded from. code: Return value. The Soundex code of the given string. Available since MySQL 5.7.
⇒ SPACE() - Repeating Space Character
⇐ RTRIM() - Right-Trimming String
2023-11-13, 1299🔥, 0💬
Popular Posts:
What is SQL Server Transact-SQL (T-SQL)? SQL Server Transact-SQL, also called T-SQL, is an extension...
How To Convert Binary Strings into Integers in SQL Server Transact-SQL? Binary strings and integers ...
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...
How To Get a List of All Tables with "sys.tables" View in SQL Server? If you want to see the table y...
How To Locate and Take Substrings with CHARINDEX() and SUBSTRING() Functions in SQL Server Transact-...