mysql全文搜索与符号(&)问题
如何搜索带有“&”的单词使用mysql全文搜索?
我的表中有单词字符串,如“Marks & Spencer”、“at&t”,搜索“at&t”,但使用 mysql 全文搜索在数据库中找不到它 有
任何方法可以用“搜索单词” &”?
How can I serach word with "&" using mysql full text search ?
There are words string, like "Marks & Spencer", "at&t" in my tables , serach "at&t", but can't find it on the database using mysql full text search
Any ways to serach word with "&"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这是不可能的。 “&”被视为运算符: http://dev. mysql.com/doc/refman/5.0/en/server-system-variables.html
曾经有一个错误填补了这件事:http://bugs.mysql.com/bug.php?id=26265
I don't think it is possible. "&" is treated as an operator: http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
There used to be a bug filled for this exact thing: http://bugs.mysql.com/bug.php?id=26265
解决了它。仅使用修复表
solved it. Just using REPAIR TABLE