0

I speak a language that has 2 letters that are very similar, and people mix up the 2 letters all the time.

Is there a way to make 1 letter equals another when "SELECT"?

For Example I've got this table:

Name     id     Col1      Col2
Row1     1      Corn      4
Row2     2      Cheese    4
Row3     3      Bread     4
Row4     4      Meat      4

When the user search for the ID of the word "Corn" or "Korn" the ID that must come up is "1"

So I want the letter "K" to equal the letter "C".

Hopefully this is clear. Thank you in advance!

Your Common Sense
  • 156,878
  • 40
  • 214
  • 345
Eli R
  • 37
  • 1
  • 6

2 Answers2

0

Have you tried SOUNDEX(Col1)=SOUNDEX('Korn') ?

ChrisBlp
  • 83
  • 1
  • 8
0

Use the MySQL SOUNDS LIKE operator and it will do the trick. Otherwise it seems there is no chance unless you develop your own algorithm.

ex

SELECT * FROM student 
WHERE col1 SOUNDS LIKE 'corn'
kuma DK
  • 1,812
  • 1
  • 18
  • 36