Categories




PreviousNext
soundex     
 Send mail Views:275
Belongs to : Mysql
Facebook Bookmarkbookmark this pageStumbleupon Bookmark 

Soundex is a really cool, and very often overlooked feature of a ton of different programming languages

SOUNDEX(str)
Returns a soundex string from str. Two strings that sound almost the same should have identical soundex strings. A standard soundex string is 4 characters long, but the SOUNDEX() function returns an arbitrarily long string. You can use SUBSTRING() on the result to get a standard soundex string. All non-alphanumeric characters are ignored in the given string. All international alpha characters outside the A-Z range are treated as vowels:

mysql> SELECT SOUNDEX('Hello');
-> 'H400'
mysql> SELECT SOUNDEX('Quadratically');
-> 'Q36324'

mysql> select uname,title from slideshow where soundex(title) like soundex("aisha takia");

+----------+--------------+
| uname | title |
+----------+--------------+
| raven | Ayesha-Takia |
| dvvel | Ayesha-Takia |
| kalai111 | Ayesha-Takia |
| sanjesh | Ayesha-takia |
| nirmala | Ajay-Jadeja- |
| menaka | Ayesha-takia |
| kalai111 | Ayesha-takia |
+----------+--------------+
7 rows in set (0.01 sec)

This function is used to return search string with similar pronunciation.

funny pictures and videos
funny pictures and videos
online games
embed code


By - kalai, On - 2010-01-11
Send This
PreviousNext

User Comments


Add NEW Feedback:

Name :     Email :

Website Monitoring Web hosting by Hiox India Contact Us   Privacy Policy   Terms and Conditions