Just another WordPress.com site

MySQL Phonetic Search

The MySQL-Server offers as well as nearly all other SQL-Server phonetic search which makes every search function user friendlier and easier to use. The fuction that is used in MySQL for phonetic search is called SOUNDEX. This function generates and returns a code based on the sound of the string which is passed to it. This means that two strings that sound equal have the same soundex-code.

SQL-Query: SELECT * FROM table WHERE SOUNDEX( table.column ) LIKE SOUNDEX( ‘search_value’ );

For further details see: http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_soundex


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Tag Cloud

%d bloggers like this: