Mysql的全文索引fullText 全文匹配问题
至尊_宝 2013-05-27 11:32:27 有个Attendee表,表中有emailAddress列,为此列加了一个fullText索引,
假如有个列数据为"alexli@hybing.com"的数据,
我想使用此表全文索引进行查找结果要求与 like '%alexli@hybing.com%'结果类似 ,
使用
SELECT * FROM AttendeeTest as at where match(emailAddress) against('alexli@hybing.com' IN BOOLEAN MODE),如果是这样的话, 查询结果有很多,比如类似"aaabbb@hybing.com"都能查出来,
如果使用
SELECT * FROM AttendeeTest as at where match(emailAddress) against('"alexli@hybing.com"' IN BOOLEAN MODE),只能查出"alexli@hybing.com"这个数据,查不出"xxxalexli@hybing.comxxx"数据,
求解.