好的,我有一张这样的表:http: //i.imgur.com/IPUSe.png
我试图在combined_names
MySQL 搜索查询的列中找到匹配项。
我用它来使用这个查询进行搜索:SELECT * FROM players WHERE match(combined_names) against('Lin')
在 phpmyadmin 中运行查询后,我得到以下信息:MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0005 sec )
嗯...让我们尝试不同的行!SELECT * FROM players WHERE match(combined_names) against('Dejan')
给了我Showing rows 0 - 0 ( 1 total, Query took 0.0007 sec) [id: 1 - 1]
所以它有效!
好吧,让我们尝试Lin
同时更改combined_names
和forename
到 ...Tester
所以我们这样做:SELECT * FROM players WHERE match(combined_names) against('Tester')
我得到了它?我得到:Showing rows 0 - 0 ( 1 total, Query took 0.0006 sec) [id: 3 - 3]
奇怪的。更改Lin
为后Tester
,它可以工作...为什么。