gpt4 book ai didi

php - mysql 匹配~例子

转载 作者:可可西里 更新时间:2023-11-01 06:59:03 24 4
gpt4 key购买 nike

下面是一个我坚持使用的 sql 示例,它不会返回名为“mill hotel”的酒店它返回 10 个其他酒店。任何帮助都会非常感谢


SELECT * FROM tbl WHERE match(hotel) against('the mill hotel' IN BOOLEAN MODE) LIMIT 10";

最佳答案

您需要指定运算符,因为在 OR 运算中未指定任何结果。试试这个:

SELECT * FROM tbl WHERE match(hotel) against('+the mill hotel' IN BOOLEAN MODE) LIMIT 10";

Read more

关于php - mysql 匹配~例子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9410632/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com