{"id":6837,"date":"2024-11-14T14:17:25","date_gmt":"2024-11-14T06:17:25","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6837\/"},"modified":"2024-11-14T14:17:25","modified_gmt":"2024-11-14T06:17:25","slug":"mysql-%e5%85%a8%e6%96%87%e6%90%9c%e7%b4%a2%e4%b8%ba%e4%bd%95%e4%b8%8d%e8%83%bd%e4%bd%bf%e7%94%a8-contains%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6837\/","title":{"rendered":"MySQL \u5168\u6587\u641c\u7d22\u4e3a\u4f55\u4e0d\u80fd\u4f7f\u7528 Contains()\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172998883945710.jpg\" class=\"aligncenter\" title=\"MySQL \u5168\u6587\u641c\u7d22\u4e3a\u4f55\u4e0d\u80fd\u4f7f\u7528 Contains()\uff1f\u63d2\u56fe\" alt=\"MySQL \u5168\u6587\u641c\u7d22\u4e3a\u4f55\u4e0d\u80fd\u4f7f\u7528 Contains()\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>MySQL \u4e2d Match() &amp; Agnst() \u53ef\u7528\uff0cContains() \u4e3a\u4f55\u4e0d\u53ef\u7528\uff1f<\/strong><\/p>\n<p>\u5728 MySQL 8.0.26 \u4e2d\u521b\u5efa\u5168\u6587\u7d22\u5f15\u540e\uff0cmatch() \u548c against() \u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\uff0c\u4f46\u4f7f\u7528 contains() \u65f6\u63d0\u793a\u201cERR_PARSE_ERROR\u201d\u9519\u8bef\u3002\u8fd9\u662f\u4ec0\u4e48\u539f\u56e0\uff1f<\/p>\n<p>\u5f88\u9057\u61be\uff0cMySQL \u5e76\u4e0d\u4f1a\u5305\u542b contains() \u8bed\u6cd5\u3002<\/p>\n<p>MySQL \u7684\u5168\u6587\u641c\u7d22\u53ea\u652f\u6301 MATCH (col1,col2,&#8230;) AGAINST (expr [search_modifier]) \u8fd9\u79cd\u8bed\u6cd5\uff0c\u800c contains() \u662f MS SQL Server \u4e2d\u7684\u8bed\u6cd5\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5728 MySQL \u4e2d\u4f7f\u7528\u5168\u6587\u641c\u7d22\u65f6\uff0c\u8bf7\u4f7f\u7528 match() \u548c against() \u6765\u67e5\u627e\u4e0e\u7279\u5b9a\u641c\u7d22\u8bcd\u5339\u914d\u7684\u884c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fMySQL \u5168\u6587\u641c\u7d22\u4e3a\u4f55\u4e0d\u80fd\u4f7f\u7528 Contns()\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL \u4e2d Match() &amp; Agnst() \u53ef\u7528\uff0cContains() \u4e3a\u4f55\u4e0d\u53ef\u7528\uff1f \u5728 MySQL 8.0.26 \u4e2d\u521b\u5efa\u5168\u6587\u7d22\u5f15\u540e\uff0cmatch() \u548c against() \u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\uff0c\u4f46\u4f7f\u7528 contains() \u65f6\u63d0\u793a\u201cERR_PARSE_ERROR\u201d\u9519\u8bef\u3002\u8fd9\u662f\u4ec0\u4e48\u539f\u56e0\uff1f \u5f88\u9057\u61be\uff0cMySQL \u5e76\u4e0d\u4f1a\u5305\u542b contains() \u8bed\u6cd5\u3002 MySQL \u7684\u5168\u6587\u641c\u7d22\u53ea\u652f\u6301 MATCH (col1,col2,&#8230;) AGAINST (expr [search_modifier]) \u8fd9\u79cd\u8bed\u6cd5\uff0c\u800c contains() \u662f MS SQL Server \u4e2d\u7684\u8bed\u6cd5\u3002 \u56e0\u6b64\uff0c\u5728 MySQL \u4e2d\u4f7f\u7528\u5168\u6587\u641c\u7d22\u65f6\uff0c\u8bf7\u4f7f\u7528 match() \u548c against() \u6765\u67e5\u627e\u4e0e\u7279\u5b9a\u641c\u7d22\u8bcd\u5339\u914d\u7684\u884c\u3002 \u4ee5\u4e0a\u5c31\u662fMySQL \u5168\u6587\u641c\u7d22\u4e3a\u4f55\u4e0d\u80fd\u4f7f\u7528 Contns()\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-6837","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=6837"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6837\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}