Verlanglijstje: Switch 2, PS5 Pro Most wanted: Switch 2
Je zou kunnen kijken of dit onderdeel is van Full Text Search dat komt denk ik nog het dichtst in de buurt.
Dr.B (
Dr.B (
edit:
oef, net te laat!
)
oef, net te laat!
NERDCORE FOR LIFE
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'
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'
SOUNDEX klink errug interessant. Maar hoe kan ik dit implementeren in een dynamische SQL query?
Verlanglijstje: Switch 2, PS5 Pro Most wanted: Switch 2
Dat dynamische moet je zelf maar verzinnen, maar in een SQL query kun je het implementeren zoals je ook al in het voorbeeld ziet dat door de manual gegeven wordt. Waarschijnlijk ga jij daar zoiets van maken:Deddiekoel: SOUNDEX klink errug interessant. Maar hoe kan ik dit implementeren in een dynamische SQL query?
code:
1
2
3
4
5
6
| SELECT
Veld
FROM
Tabel
WHERE
SOUNDEX(Veld) = SOUNDEX('mijn_invoer') |
Pagina: 1