mysql全文搜索与符号(&)问题

发布于 2024-08-27 06:17:35 字数 157 浏览 4 评论 0原文

如何搜索带有“&”的单词使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

失退 2024-09-03 06:17:35

我认为这是不可能的。 “&”被视为运算符: 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

痴骨ら 2024-09-03 06:17:35

解决了它。仅使用修复表

solved it. Just using REPAIR TABLE

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文