gpt4 book ai didi

mysql - CONTAINS 在 mysql 中不工作

转载 作者:行者123 更新时间:2023-11-29 13:58:30 26 4
gpt4 key购买 nike

我正在使用 CONTAINS,但它在 mysql 中不起作用。

 mysql> SELECT * FROM MUTHU;
+---------------------+
| MY |
+---------------------+
| how is your studies |
| how are you there |
| hi there |
+---------------------+
3 rows in set (0.00 sec)
mysql> SELECT * FROM MUTHU CONTAINS ( MY, "how" );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '( MY,
"how" )' at line 1

最佳答案

我认为 MYSQL 没有名为 CONTAINS 的函数,请尝试以下查询:

SELECT * FROM MUTHU
WHERE MY LIKE '%how%';

关于mysql - CONTAINS 在 mysql 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15436129/

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