これが私がやっているMySQLです:
mysql> select "Le Café de la Mairie" as titre, "15 pl Mairie" as adresse1, id from ville where sound=soundex('FERTE SOUS JOUARRE') and cp='77260';
+-----------------------+--------------+-----+
| titre | adresse1 | id |
+-----------------------+--------------+-----+
| Le Café de la Mairie | 15 pl Mairie | 447 |
+-----------------------+--------------+-----+
1 row in set (0.00 sec)
mysql> select "Le Café de la Mairie" as titre, "15 pl Mairie" as adresse1, id from ville where sound=soundex('FERTE SOUS JOUARRE') and cp='77261';
Empty set (0.00 sec)
mysql>
これが私が欲しいものです:
mysql> select "Le Café de la Mairie" as titre, "15 pl Mairie" as adresse1, id from ville where sound=soundex('FERTE SOUS JOUARRE') and cp='77260';
+-----------------------+--------------+-----+
| titre | adresse1 | id |
+-----------------------+--------------+-----+
| Le Café de la Mairie | 15 pl Mairie | 447 |
+-----------------------+--------------+-----+
1 row in set (0.00 sec)
mysql> **(same query but dont find a record)**;
+--------------+------------+------+
| titre | adresse1 | id |
+--------------+------------+------+
| NULL | NULL | NULL |
+--------------+------------+------+
mysql>
もちろん、私はすでにグーグルと検索のstackoverflowを持っています。