{"id":52408,"date":"2024-12-03T17:58:55","date_gmt":"2024-12-03T09:58:55","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52408\/"},"modified":"2024-12-03T17:58:55","modified_gmt":"2024-12-03T09:58:55","slug":"sql%e6%97%a0%e6%b3%95%e8%b5%b0%e7%b4%a2%e5%bc%95%e7%9a%84%e6%83%85%e5%86%b5%e5%8f%8a%e8%a7%a3%e5%86%b3%e6%80%9d%e8%b7%af-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52408\/","title":{"rendered":"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def<\/h1>\n<p>\u79ef\u7d2f\u77e5\u8bc6\uff0c\u80dc\u8fc7\u79ef\u84c4\u91d1\u94f6\uff01\u6bd5\u7adf\u5728\u6587\u7ae0\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u9047\u5230\u5404\u79cd\u5404\u6837\u7684\u95ee\u9898\uff0c\u5f80\u5f80\u90fd\u662f\u4e00\u4e9b\u7ec6\u8282\u77e5\u8bc6\u70b9\u8fd8\u6ca1\u6709\u638c\u63e1\u597d\u800c\u5bfc\u81f4\u7684\uff0c\u56e0\u6b64\u57fa\u7840\u77e5\u8bc6\u70b9\u7684\u79ef\u7d2f\u662f\u5f88\u91cd\u8981\u7684\u3002\u4e0b\u9762\u672c\u6587\u300aSQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u300b\uff0c\u5c31\u5e26\u5927\u5bb6\u8bb2\u89e3\u4e00\u4e0b\u77e5\u8bc6\u70b9\uff0c\u82e5\u662f\u4f60\u5bf9\u672c\u6587\u611f\u5174\u8da3\uff0c\u6216\u8005\u662f\u60f3\u641e\u61c2\u5176\u4e2d\u67d0\u4e2a\u77e5\u8bc6\u70b9\uff0c\u5c31\u8bf7\u4f60\u7ee7\u7eed\u5f80\u4e0b\u770b\u5427~<\/p>\n<p>\u4e0a\u6b21\u4e01\u4fca\u5927\u5e08\u5728\u793e\u7fa4\u4e0a\u505a\u4e86CBO\u4f18\u5316\u5668\u548c\u5751\u7239\u6848\u4f8b\u7684\u5206\u4eab\u540e\uff0c\u53cd\u54cd\u4e0d\u662f\u4e00\u822c\u7684\u5f3a\u70c8\uff0c\u4f46\u5176\u4e2d\u4e5f\u6709\u4e00\u90e8\u5206\u540c\u5b66\u8868\u793a\u592a\u9ad8\u5927\u4e0a\u4e86\uff08\u6211\u4e5f\u662f\u8fd9\u6837\u89c9\u5f97\u7684\uff09\uff0c\u6d88\u5316\u8d77\u6765\u76f8\u5f53\u6709\u96be\u5ea6\uff0c\u4e8e\u662f\u4fbf\u6709\u4e86\u672c\u6587\u3002\u7ed5\u5f00\u590d\u6742\u7684CBO\u4f18\u5316\u5668\u4e0d\u8bf4\uff0c\u672c\u6587\u5c06\u5e2e\u4f60\u7406\u6e05\u90a3\u4e9b\u56e0\u4e3aSQL\u8bed\u53e5\u7f16\u5199\u89c4\u8303\u95ee\u9898\u5bfc\u81f4\u6ca1\u6709\u5145\u5206\u5229\u7528\u7d22\u5f15\u6765\u5927\u5e45\u63d0\u5347\u6548\u7387\u7684\u4f7f\u7528\u573a\u666f\u3002<\/p>\n<p><strong>\u4e00\u3001SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def<\/strong>  <\/p>\n<p>\u56e0\u4e3a\u6570\u636e\u5e93\u4f18\u5316\u5668\u4e0d\u591f\u667a\u80fd\uff0c\u6216\u8005\u4e00\u4e9b\u903b\u8f91\u539f\u56e0\uff0c\u5bfc\u81f4SQL\u5728\u6bd4\u8f83\u9002\u5408\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u4e0b\u5374\u65e0\u6cd5\u6b63\u786e\u5229\u7528\u7d22\u5f15\u3002\u8fd9\u65f6\u5019\uff0c\u9664\u4e86\u7ed9\u6570\u636e\u5e93\u9700\u8981\u7684\u7edf\u8ba1\u4fe1\u606f\u4e4b\u5916\uff0cSQL\u8bed\u53e5\u672c\u8eab\u8fd8\u5fc5\u987b\u8981\u7ed9\u4f18\u5316\u5668\u8db3\u591f\u591a\u7684\u989d\u5916\u6709\u6548\u4fe1\u606f\uff0c\u5e2e\u52a9\u4f18\u5316\u5668\u80fd\u591f\u9009\u62e9\u66f4\u597d\u7684\u6267\u884c\u8ba1\u5212\u3002\u8981\u8ba9\u4f18\u5316\u5668\u6b63\u786e\u9009\u62e9\u9700\u8981\u7684\u7d22\u5f15\uff0c\u8981\u8003\u8651\u4e24\u70b9\uff1a<\/p>\n<ul>\n<li>\u5982\u4f55\u907f\u514d\u4f18\u5316\u5668\u7684\u9650\u5236<\/li>\n<li>\u6839\u636e\u4e1a\u52a1\u6570\u636e\u7279\u70b9\u6539\u5199SQL\u8bed\u53e5<\/li>\n<\/ul>\n<p>\u8bf4\u660e\uff1a\u8fd9\u91cc\u8bf4\u7684\u8d70\u4e0d\u4e86\u7d22\u5f15\uff0c\u662f\u6307\u8d70\u4e0d\u4e86\u6b63\u5e38\u7684RANGE SCAN\uff0c\u975e(FAST) FULL INDEX SCAN\u3002<\/p>\n<p>SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u5e38\u89c1\u7684\u6709\u5982\u4e0b8\u79cd\u60c5\u51b5\uff1a<\/p>\n<ol>\n<li>\u7edf\u8ba1\u4fe1\u606f\u4e0d\u51c6\u786e<\/li>\n<li>\u7d22\u5f15\u5217\u7684\u503c\u5141\u8bb8\u4e3aNULL<\/li>\n<li>\u8c13\u8bcd\u4f7f\u7528\u4e86\u4e0d\u7b49\u4e8e\uff08&lt;&gt;, !=\uff09<\/li>\n<li>LIKE\u524d\u901a\u914d\u6216\u5168\u901a\u914d\u7684\u67e5\u8be2<\/li>\n<li>\u7d22\u5f15\u5217\u4f7f\u7528\u4e86\u51fd\u6570\u3001\u6570\u5b66\u8fd0\u7b97\u3001\u5176\u5b83\u8868\u8fbe\u5f0f\u7b49<\/li>\n<li>\u4f7f\u7528\u4e86\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362<\/li>\n<li>\u67e5\u8be2\u8f6c\u6362\u5931\u8d25<\/li>\n<li>\u5176\u5b83\u8bed\u53e5\u903b\u8f91\u539f\u56e0<\/li>\n<\/ol>\n<p>\u7b2c\u4e00\u3001\u4e8c\u79cd\u60c5\u51b5\u5728\u73b0\u5b9e\u4e2d\u6bd4\u8f83\u5e38\u89c1\uff0c\u89e3\u51b3\u529e\u6cd5\u4e5f\u76f8\u5bf9\u6bd4\u8f83\u7b80\u5355\uff0c\u4e0b\u9762\u5c31\u4e0d\u518d\u4f5c\u8be6\u7ec6\u5c55\u5f00\u4e86\u3002<\/p>\n<p><span style=\"color: #1e1e1e;letter-spacing: 2px;border-left: #FF3030 3px solid;border-right: #FF3030 3px solid;padding-left: 8px;padding-right: 8px;font-size: 12pt\"><strong>\u8c13\u8bcd\u4f7f\u7528\u4e86\u4e0d\u7b49\u4e8e(&lt;&gt;,!=)\uff0c\u8d70\u4e0d\u4e86\u7d22\u5f15<\/strong><\/span>  <\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<ol>\n<li>\u5982\u679c\u4e0d\u7b49\u6761\u4ef6\u4e4b\u5916\u7684\u503c\u4e0d\u591a\uff0c\u800c\u4e14\u662f\u786e\u5b9a\u7684\uff0c\u53ef\u4ee5\u6539\u4e3a\u7b49\u503c\u6216IN\u67e5\u8be2\uff0c\u6bd4\u5982status\u72b6\u6001\u5b57\u6bb5\u4e00\u822c\u503c\u7c7b\u522b\u5f88\u5c11\uff1b<\/li>\n<li>\u5982\u679c\u4e0d\u7b49\u6761\u4ef6\u4e4b\u5916\u7684\u503c\u5f88\u591a\uff0c\u53ef\u4ee5\u6539\u4e3a\u201c&gt; OR &lt;\u201d\u7684\u5f62\u5f0f\uff0c\u5f53\u7136\u7b2c2\u79cd\u65b9\u6cd5\u5305\u542b\u4e86\u65b9\u6cd51\u3002<\/li>\n<\/ol>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5148\u6784\u5efa\u6d4b\u8bd5\u573a\u666f\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05b963dc.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe\" \/><\/p>\n<p>\u8c13\u8bcd\u4f7f\u7528&lt;&gt;\uff0c\u65e0\u6cd5\u5229\u7528\u7d22\u5f15\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05b99dbf.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe1\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe1\" \/><\/p>\n<p>\u5c06&lt;&gt;\u6539\u5199\u4e3aOR\u8fde\u63a5\u540e\uff0c\u80fd\u591f\u6b63\u786e\u4f7f\u7528\u7d22\u5f15\uff0c\u8d70OR\u6269\u5c55\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05b9d54d.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe2\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe2\" \/><\/p>\n<p>\u5982\u679c\u4e1a\u52a1\u5141\u8bb8\uff0c\u6539\u5199\u4e3a\u4e0b\u5217\u8bed\u53e5\u4e5f\u662f\u8d70\u7d22\u5f15\u7684\uff0c\u4e0d\u518d\u6f14\u793a\u3002<\/p>\n<p>SELECT * FROM t&nbsp;WHERE t.NAME IN (\u2018ORADB1\u2032,\u2019ORADB2\u2032,\u2019ORADB3\u2019);<\/p>\n<p><strong>LIKE\u524d\u901a\u914d\u6216\u5168\u901a\u914d\u7684\u67e5\u8be2\uff0c\u8d70\u4e0d\u4e86\u7d22\u5f15<\/strong><\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff0c\u6709\u5982\u4e0b\u4e09\u79cd\uff1a<\/p>\n<p>\uff081\uff09\u6839\u636e\u4e1a\u52a1\u9700\u6c42\uff0c\u662f\u5426\u53ef\u4ee5\u628a\u524d\u901a\u914d\u53bb\u6389<\/p>\n<p>\u539f\u6765\u5168\u901a\u914d\uff0c\u65e0\u6cd5\u8d70\u7d22\u5f15\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05b9ea23.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe3\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe3\" \/><\/p>\n<p>\u628a\u524d\u901a\u914d\u53bb\u6389\uff0c\u6539\u4e3a\u540e\u901a\u914d\uff0c\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u7d22\u5f15\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05ba0aa4.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe4\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe4\" \/><\/p>\n<p>\uff082\uff09\u548c\u6b64LIKE\u4e00\u6837\u7684\u524d\u901a\u914d\u6216\u5168\u901a\u914d\u7684SQL\u6709\u5f88\u591a\uff0c\u6b64\u8c13\u8bcd\u7684LIKE\u53d8\u5316\u4e0d\u5927\uff1f\u5982\u679c\u662f\uff0c\u8003\u8651\u5efa\u7acb\u51fd\u6570\u7d22\u5f15\uff0c\u5426\u5219\u5bf9\u4e8e\u5168\u901a\u914d\u95ee\u9898\u6700\u597d\u529e\u6cd5\u5c31\u662f\u5168\u6587\u7d22\u5f15\u3002<\/p>\n<p>\u521b\u5efainstr\u51fd\u6570\u7d22\u5f15\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05ba4845.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe5\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe5\" \/><\/p>\n<p>\uff083\uff09\u5982\u679c\u53ea\u662f\u524d\u901a\u914d\uff0c\u53ef\u4ee5\u4f7f\u7528reverse\u51fd\u6570\u7d22\u5f15\uff08\u4e0d\u662f\u7ffb\u8f6c\u952e\u7d22\u5f15\uff09<\/p>\n<p>\u539f\u59cb\u8bed\u53e5\uff1a<br \/> SELECT &nbsp;* FROM t WHERE t.NAME LIKE \u2018%ORADB1\u2019;<\/p>\n<p>\u521b\u5efareverse\u51fd\u6570\u7d22\u5f15\uff0c\u5e76\u6539\u5199\u8bed\u53e5\uff0c<strong>\u6ce8\u610f\u67e5\u627e\u503c\u8981\u5012\u5e8f\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05ba5d89.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe6\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe6\" \/><\/p>\n<p><strong>\u6ce8\u610f\uff1a<\/strong>\u5982\u679c\u901a\u914d\u67e5\u8be2\u7684\u662f\u4e2d\u6587\uff0c\u8981\u6ce8\u610f\u4f7f\u7528REVERSE\u7ffb\u8f6c\u6761\u4ef6\u503c\uff0c\u56e0\u4e3aREVERSE\u5185\u90e8\u4f1a\u6309\u5b57\u8282\u7ffb\u8f6c\u7684\uff0c\u6b63\u786e\u5199\u6cd5\u5982\uff1a<\/p>\n<p>SELECT * FROM t WHERE REVERSE(t.name) LIKE REVERSE(\u2018\u6570\u636e\u2019)||\u2019%\u2019;<\/p>\n<p>\u5426\u5219\u67e5\u8be2\u51fa\u6765\u7684\u6570\u636e\u4e0d\u5bf9\uff0c\u5c06\u53ef\u80fd\u5f71\u54cd\u5230\u4e1a\u52a1\u7684\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p><span style=\"color: #1e1e1e;letter-spacing: 2px;border-left: #FF3030 3px solid;border-right: #FF3030 3px solid;padding-left: 8px;padding-right: 8px;font-size: 12pt\"><strong>\u7d22\u5f15\u5217\u4f7f\u7528\u4e86\u51fd\u6570\u3001\u6570\u5b66\u8fd0\u7b97\u3001\u5176\u4ed6\u8868\u8fbe\u5f0f\u7b49\uff0c\u8d70\u4e0d\u4e86\u7d22\u5f15<\/strong><\/span>  <\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u53bb\u6389\u5bf9\u7d22\u5f15\u5217\u7684\u76f8\u5173\u8fd0\u7b97\uff0c\u4fdd\u6301\u7d22\u5f15\u5217\u7eaf\u51c0\u3002<\/p>\n<p>\u76ee\u524d\u4f18\u5316\u5668\u5bf9\u4e00\u4e9b\u6570\u5b66\u8fd0\u7b97\uff0c\u8fd8\u65e0\u6cd5\u505a\u5f88\u597d\u7684\u6d88\u9664\u52a8\u4f5c\uff0c\u6240\u4ee5\u5bf9\u4e8e\u7d22\u5f15\u5217\u5e94\u8be5\u5c3d\u91cf\u4fdd\u6301\u7eaf\u51c0\uff0c\u5426\u5219\u53ef\u80fd\u65e0\u6cd5\u7528\u4e0a\u6b63\u786e\u7684\u7d22\u5f15\u3002<\/p>\n<p>\u4e3e\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05ba898d.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe7\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe7\" \/><\/p>\n<p>\u628a\u8bed\u53e5\u7684\u6761\u4ef6\u6539\u5199\u4e00\u4e0b\uff0c\u5c06\u8fd0\u7b97\u53bb\u6389\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bad987.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe8\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe8\" \/><\/p>\n<p>\u4ee5\u4e0a\u4f8b\u5b50\u53ea\u662f\u7b80\u5355\u7684\u6570\u5b66\u8fd0\u7b97\uff0c\u53ef\u80fd\u7684\u8fd0\u7b97\u8fd8\u6709\u548c\u5176\u4ed6\u5217\u8fd0\u7b97\uff0c\u6bd4\u5982where ID+ext_col\u2026<\/p>\n<p><strong>\u8bb0\u4f4f\u4e00\u4e2a\u539f\u5219\uff1a\u5c3d\u91cf\u4fdd\u6301\u7d22\u5f15\u5217\u7eaf\u51c0\u3002<\/strong><\/p>\n<p><span style=\"color: #1e1e1e;letter-spacing: 2px;border-left: #FF3030 3px solid;border-right: #FF3030 3px solid;padding-left: 8px;padding-right: 8px;font-size: 12pt\"><strong>\u4f7f\u7528\u4e86\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362\uff0c\u8d70\u4e0d\u4e86\u7d22\u5f15<\/strong><\/span>  <\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u5fc5\u987b\u907f\u514d\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362\uff0c\u5168\u90e8\u8981\u6c42\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362\uff08\u975e\u7d22\u5f15\u5217\uff09\uff0c\u4e14\u907f\u514d\u5bf9\u7d22\u5f15\u5217\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362\uff08\u6709\u51fd\u6570\u7d22\u5f15\u9664\u5916\uff09\u3002\u5982\u679c\u7c7b\u578b\u4e0d\u4e00\u81f4\uff0c\u4e0d\u7ba1\u662f\u5426\u53d1\u751f\u81ea\u52a8\u7c7b\u578b\u8f6c\u6362\uff0c\u8c13\u8bcd\u7684\u53f3\u503c\u5e94\u8be5\u663e\u5f0f\u8f6c\u6362\u4e3a\u4e0e\u7d22\u5f15\u5217\u4fdd\u6301\u4e00\u81f4\uff08\u5bf9\u4e8e\u975e\u7d22\u5f15\u5217\u7684\u8fd0\u7b97\u4e5f\u5e94\u8be5\u5982\u6b64\uff09\u3002<\/p>\n<p>\u4e3e\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bb2e97.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe9\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe9\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bb457f.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe10\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe10\" \/><\/p>\n<p>\u4ece\u4ee5\u4e0a\u4e24\u6b21\u67e5\u8be2\u5bf9\u6bd4\u6765\u770b\uff0c\u7b2c\u4e00\u6b21\u67e5\u8be2\u53d1\u751f\u4e86\u7c7b\u578b\u8f6c\u6362\uff0c\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u8ba1\u5212\u4e2d\u7684\u8c13\u8bcd\u4fe1\u606f\u83b7\u77e5\u3002\u901a\u8fc7\u5206\u6790\u53d1\u73b0\uff0cX\u56e0\u4e3a\u662fVARCHAR2\uff0c\u4f18\u5148\u7ea7\u6bd4\u6570\u503c\u7c7b\u578b\u4f4e\uff0c\u9047\u5230\u6570\u503c\u7c7b\u578b\uff0c\u4f1aTO_NUMBER\u9690\u5f0f\u8f6c\u6362\uff0c\u6240\u4ee5\u7d22\u5f15\u5931\u6548\u3002\u7b2c\u4e8c\u6b21\u67e5\u8be2\uff0c\u901a\u8fc7\u4f20\u5165\u4e0e\u7d22\u5f15\u5217\u7c7b\u578b\u4e00\u81f4\u7684\u5b57\u7b26\u4e32\u540e\uff0c\u5f97\u4ee5\u89e3\u51b3\u3002<\/p>\n<p><span style=\"color: #1e1e1e;letter-spacing: 2px;border-left: #FF3030 3px solid;border-right: #FF3030 3px solid;padding-left: 8px;padding-right: 8px;font-size: 12pt\"><strong>\u67e5\u8be2\u8f6c\u6362\u5931\u8d25\uff0c\u8d70\u4e0d\u4e86\u7d22\u5f15<\/strong><\/span>  <\/p>\n<p>\u67e5\u8be2\u8f6c\u6362\u662f\u975e\u5e38\u590d\u6742\u7684\u8fc7\u7a0b\uff0cORACLE CBO\u7684\u67e5\u8be2\u8f6c\u6362\u6709\u597d\u51e0\u5341\u79cd\uff0c\u6bd4\u5982CVM \uff1acomplex view merging \uff0cSU:subquery unnest, JPPD:JOIN PREDICATE PUSH DOWN\u7b49\uff08\u572810053\u6587\u4ef6\u91cc\u90fd\u53ef\u4ee5\u770b\u5230\uff09\u3002\u5982\u679c\u67e5\u8be2\u8f6c\u6362\u5931\u8d25\uff0c\u90a3\u4e48\u5fc5\u5c06\u5f71\u54cd\u540e\u7eed\u4f18\u5316\u5668\u7684\u4e00\u4e9b\u64cd\u4f5c\uff0c\u6bd4\u5982JPPD\u4e2dJOIN\u8c13\u8bcd\u65e0\u6cd5\u63a8\u5165\u5230\u89c6\u56fe\u4e2d\uff0c\u90a3\u4e48\u5f88\u53ef\u80fd\u89c6\u56fe\u5c31\u65e0\u6cd5\u8d70\u7d22\u5f15\u4e86\u3002\u800c\u4e14\uff0c\u67e5\u8be2\u8f6c\u6362\u6709\u5f88\u591aBUG\uff0c\u89e6\u53d1BUG\u9700\u8981\u627e\u5230\u539f\u56e0\uff0c\u6bd4\u5982\u8bbe\u7f6e\u9690\u542b\u53c2\u6570\u3001fix control\u7b49\uff0c\u6216\u8005\u6539\u5199SQL\u7ed5\u8fc7BUG\u3002\u5982\u4e0b\u4f8b\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bb7e14.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe11\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe11\" \/><\/p>\n<p>\u5176\u4e2dAB_XRTOFFREC_201703\u662fUNION ALL\u67e5\u8be2\u7ec4\u6210\u7684\u89c6\u56fe\uff0c\u8fd9\u4e2a\u67e5\u8be2\u572810.2.0.4\u4e0a\u5f88\u6b63\u5e38\uff0c\u5347\u7ea7\u523011.2.0.4\u540e\u6267\u884c\u8ba1\u5212\u663e\u793a\u4e0d\u8d70\u7d22\u5f15\uff0c\u6027\u80fd\u975e\u5e38\u5dee\u3002<\/p>\n<p><strong>\u572810g\u4e2d\u7684\u6267\u884c\u8ba1\u5212\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bbd355.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe12\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe12\" \/><\/p>\n<p><strong>\u572811g\u4e2d\u7684\u9519\u8bef\u6267\u884c\u8ba1\u5212\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bc34dc.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe13\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe13\" \/><\/p>\n<p>\u901a\u8fc7\u6536\u96c6\u7edf\u8ba1\u4fe1\u606f\u90fd\u65e0\u6548\uff0c\u5c06\u4f18\u5316\u5668\u964d\u7ea7\u523010.2.0.4\u5373\u6709\u6548\u3002\u5f88\u663e\u7136\uff0c\u8fd9\u662f\u5f15\u5165\u4e86BUG\u6216\u8005\u65b0\u7684\u9650\u5236\u3002\u4e00\u65e6\u9047\u5230\u8fd9\u79cd\u662fBUG\u6216\u9650\u5236\u5bfc\u81f4\u7684\uff0c\u53ef\u4ee5\u901a\u8fc710053\u8ddf\u8e2a\u6587\u4ef6\u6216\u8005SQLT\u6765\u8fdb\u884c\u5206\u6790\u3002\u5bf9\u4e8e\u8fd9\u6761\u8bed\u53e5\u65e0\u6cd5\u8d70JPPD\u67e5\u8be2\u8f6c\u6362\uff0c\u572810053\u4e2d\u5c31\u53ef\u4ee5\u627e\u5230\u539f\u56e0\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bc8a6e.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe14\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe14\" \/><\/p>\n<p>\u7136\u540e\u5728MOS\u4e2d\u67e5\u770b\u5f97\u77e5\u662fBUG:9380298\uff0c\u9ed8\u8ba4\u5f00\u5173\u5173\u95ed\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bcb2a8.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe15\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe15\" \/><\/p>\n<p>ORACLE\u9488\u5bf9\u8fd9\u6837\u7684\u67e5\u8be2\uff0c\u4e3a\u4e86\u9632\u6b62\u9047\u5230\u7b1b\u5361\u5c14\u79ef\uff0c\u9ed8\u8ba4\u628a\u4fee\u590dBUG\u7684\u8865\u4e01\u5173\u95ed\u4e86\u3002\u663e\u7136\u901a\u8fc7\u8bbe\u7f6e_fix_control\u53c2\u6570\u6253\u5f009380298 fix\u5373\u53ef\u3002<\/p>\n<p><span style=\"color: #1e1e1e;letter-spacing: 2px;border-left: #FF3030 3px solid;border-right: #FF3030 3px solid;padding-left: 8px;padding-right: 8px;font-size: 12pt\"><strong>\u8bed\u53e5\u903b\u8f91\u95ee\u9898\uff0c\u5bfc\u81f4\u4f18\u5316\u5668\u9009\u62e9\u4e0d\u4e86\u7d22\u5f15<\/strong><\/span>  <\/p>\n<p>\u4e3e\u4e00\u4e2a\u5178\u578b\u7684\u4f8b\u5b50\uff0c\u5148\u51c6\u5907\u6d4b\u8bd5\u8868\uff0c\u5e76\u5728\u5176\u4e0a\u521b\u5efa\u4e00\u4e2a\u7ec4\u5408\u7d22\u5f15\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bcfc56.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe16\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe16\" \/><\/p>\n<p>\u67e5\u8be2\u9700\u6c42\uff1a\u67e5\u627e\u521b\u5efa\u65f6\u95f4\u662f2013\u5e74\u7684\uff0c\u5e76\u4e14\u6700\u540eddl\u65f6\u95f4\u6bd4\u521b\u5efa\u65f6\u95f4\u59271\u5929\u4ee5\u4e0a\u7684\u5bf9\u8c61\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bd0add.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe17\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe17\" \/><\/p>\n<p>\u8fd9\u4e2a\u7d22\u5f15\u662f\u7ec4\u5408\u7d22\u5f15\uff0c\u4e0a\u9762\u7684\u8bed\u53e5\u5bf9\u524d\u5bfc\u5217\u8fdb\u884c\u4e86\u8fd0\u884c\uff0c\u4e5f\u4e0d\u7b26\u5408\u8d70index skip scan\u7684\u6761\u4ef6\uff0c\u6240\u4ee5\uff0c\u8d70FULL TABLE SCAN\u3002\u90a3\u4e48\u662f\u5426\u53ef\u4ee5\u901a\u8fc7\u903b\u8f91\u6539\u5199\u8d70\u7d22\u5f15\u5462\uff0c\u57fa\u4e8e\u4fdd\u6301\u7d22\u5f15\u5217\u7eaf\u51c0\u7684\u539f\u5219\uff0c\u5c06create_date\u79fb\u5230\u53f3\u8fb9\uff0c\u8bed\u53e5\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bd5c79.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe18\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe18\" \/><\/p>\n<p>\u6539\u5199\u540e\u53d1\u73b0\uff0c\u8fd8\u662f\u6ca1\u6709\u8d70\u7d22\u5f15\uff0c\u56e0\u4e3aOracle\u8ba4\u4e3a\u524d\u5bfc\u5217\u53f3\u8fb9\u7684created\u4e0d\u56fa\u5b9a\uff0c\u65e0\u6cd5\u4ece\u6307\u5b9a\u7d22\u5f15\u5904\u67e5\u627e\u3002\u901a\u8fc7\u5206\u6790\u5f97\u77e5\uff0cOracle\u8c13\u8bcd\u4f20\u9012\u6709\u4e00\u5b9a\u9650\u5236\uff0ccreate_date+1\u65e0\u6cd5\u505a\u8c13\u8bcd\u4f20\u9012\u7ed9last_ddl_time\u3002\u518d\u6b21\u6539\u5199\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bd8396.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe19\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe19\" \/><\/p>\n<p>\u6b64\u65f6Oracle\u77e5\u9053\u5c06\u8c13\u8bcd\u4f20\u9012\u7ed9last_ddl_time\u4e86\uff0cT.LAST_DDL_TIME&gt;=TO_DATE(\u2018 2013-01-01 00:00:00\u2019, \u2018syyyy-mm-dd&nbsp;hh24:mi:ss\u2019)\u3002\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u8c13\u8bcd\u4f20\u9012\uff0clast_ddl_time\u80af\u5b9a\u5927\u4e8e\u7b49\u4e8e<strong>DATE\u20192013-1-2\u2032<\/strong>\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bddb8b.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe20\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe20\" \/><\/p>\n<p>\u8fd8\u672a\u5b8c\uff0c\u6211\u4eec\u7ee7\u7eed\u5f80\u4e0b\u770b\uff1a<\/p>\n<p>\u5982\u679c\u67e5\u8be2\u6761\u4ef6\u4e2d\u65e0t.created&gt;=DATE\u20192013-1-1\u2019\uff0c\u5373\u5982\u4e0b\u9762\u8bed\u53e5\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05be36ce.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe21\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe21\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05be6269.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe22\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe22\" \/><\/p>\n<p>\u2013\u7531\u6b64\u4e24\u6570\u636e\u6bd4\u8f83\u53ef\u77e5\uff0c\u5e94\u8be5\u8d70\u7d22\u5f15\u66f4\u4f73\u3002\u56e0\u4e3a\u6ca1\u6709\u5176\u4ed6\u8fc7\u6ee4\u6761\u4ef6\uff0c\u53ef\u4ee5\u8003\u8651\u5efa\u7acb\u51fd\u6570\u7d22\u5f15\uff1a<\/p>\n<pre>SQL&gt; CREATE INDEX idx1_t_object ON t_objects(last_ddl_time-created);<\/pre>\n<p>\u2013\u6ce8\u610f\u6536\u96c6\u76f4\u65b9\u56fe\uff0c\u56e0\u4e3a\u5206\u5e03\u4e0d\u5747<\/p>\n<pre>SQL&gt; exec dbms_stats.gather_table_stats(ownname =&gt; USER,tabname =&gt; \u2018t_objects\u2019,estimate_percent =&gt; 100,method_opt =&gt; \u2018for all indexed columns\u2019,cascade =&gt; TRUE);<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05be92c8.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe23\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe23\" \/><\/p>\n<p>\u5f53\u7136\uff0c\u5bf9\u4e8e\u4e24\u4e2a\u90fd\u662f\u8303\u56f4\u7684\u67e5\u8be2\uff0c\u8fd9\u91cc\u53ea\u80fd\u901a\u8fc7\u4e00\u4e2a\u5217\u6765\u8f6e\u8be2\u7d22\u5f15\uff0c\u5148\u505aaccess\uff0c\u518d\u505afilter\u3002<\/p>\n<p>SQL\u8bed\u53e5\u7684\u903b\u8f91\u6539\u5199\u5f88\u91cd\u8981\uff0c\u5f80\u5f80\u901a\u8fc7\u903b\u8f91\u6539\u5199\u5c31\u80fd\u6539\u53d8SQL\u7684\u6267\u884c\u8ba1\u5212\uff0c\u4ece\u4e0d\u597d\u7684\u8ba1\u5212\u5230\u597d\u7684\u8ba1\u5212\uff0c\u6bd4\u5982semi join\uff0canti join\u4e0eor\uff0c\u5f80\u5f80\u8d70FILTER\u5bfc\u81f4\u6267\u884c\u8ba1\u5212\u8f83\u5dee\uff0c\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u901a\u8fc7\u903b\u8f91\u7b49\u4ef7\u6539\u5199\u3002\u903b\u8f91\u7b49\u4ef7\u6539\u5199\u5f80\u5f80\u9700\u8981\u638c\u63e1\u4e00\u4e9b\u96c6\u5408\u7684\u77e5\u8bc6\uff0c\u6bd4\u5982NOT (A AND B)==NOT A OR NOT B\uff0cNOT (A OR B)==NOT A AND NOT B\u7b49\u3002<\/p>\n<p><span style=\"color: #1e1e1e;letter-spacing: 2px;border-left: #FF3030 3px solid;border-right: #FF3030 3px solid;padding-left: 8px;padding-right: 8px;font-size: 12pt\"><strong>\u603b\u7ed3<\/strong><\/span>  <\/p>\n<p>SQL\u6709\u7d22\u5f15\u800c\u4e0d\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u8fd8\u6709\u5f88\u591a\uff0c\u6bd4\u5982\u5728DBLINK\u67e5\u8be2\u4e2d\uff0c\u53ef\u80fd\u8d70\u4e0d\u4e86\u7d22\u5f15\uff0c\u8fd9\u65f6\u5019\u9700\u8981\u901a\u8fc7driving_site hint\u6216\u8005\u8fdc\u7a0b\u5e93\u5efa\u7acb\u89c6\u56fe\u7b49\u65b9\u5f0f\u89e3\u51b3\u7b49\uff0c\u9700\u8981\u7efc\u5408\u4ece\u8bed\u6cd5\u8bed\u4e49\u3001\u7d22\u5f15\u9009\u62e9\u6027\u3001\u7d22\u5f15\u8bbf\u95ee\u7279\u70b9\u7b49\u591a\u65b9\u9762\u8fdb\u884c\u5206\u6790\u3002<\/p>\n<p><strong>\u4e8c\u3001\u5982\u4f55\u5c06SQL\u5f00\u53d1\u89c4\u8303\u843d\u5730<\/strong>  <\/p>\n<p>\u4e0a\u9762\u8bf4\u5230\u7684\u95ee\u9898\uff0c\u8bf4\u5230\u5e95\u90fd\u662f\u4e0d\u9075\u5b88\u6570\u636e\u5e93\u5f00\u53d1\u89c4\u8303\u7684\u95ee\u9898\u3002\u8bf4\u5230\u6570\u636e\u5e93\u5f00\u53d1\u89c4\u8303\uff0c\u4f30\u8ba1\u5f88\u591a\u4f01\u4e1a\u90fd\u6709\u5236\u5b9a\u5bf9\u5e94\u7684\u89c4\u8303\u53ca\u8981\u6c42\uff0c\u4f46\u8bf4\u5230\u843d\u5730\u6267\u884c\u60c5\u51b5\uff0c\u8fd9\u4e2a\u5c31\u6bd4\u8f83\u56f0\u96be\u4e86\u3002\u5982\u679c\u4f01\u4e1a\u5728\u610f\u65e8\u4e0a\u662f\u671f\u671b\u5f00\u53d1\u4eba\u5458\u53bb\u5b66\u61c2\u89c4\u8303\uff0c\u7136\u540e\u5b66\u4ee5\u81f4\u7528\uff0c\u5c31\u6709\u70b9\u592a\u7406\u60f3\u5316\u4e86\u3002\u4e8e\u662f\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u5f00\u53d1\u4eba\u5458\u771f\u7684\u662f\u6309\u7167\u6570\u636e\u5e93\u5f00\u53d1\u89c4\u8303\u6765\u7f16\u5199\u4ee3\u7801\uff0c\u5f88\u591a\u4f01\u4e1a\u5c31\u5728\u5e94\u7528\u4e0a\u7ebf\u524d\u589e\u52a0\u4e86\u4e00\u9053SQL\u4e0a\u7ebf\u5ba1\u6838\u7684\u5de5\u5e8f\u3002<\/p>\n<p><strong>\u8bf4\u5230SQL\u4e0a\u7ebf\u5ba1\u6838\uff0c\u5173\u952e\u8981\u89e3\u51b3\u4e09\u4e2a\u95ee\u9898\uff1a<\/strong><\/p>\n<p><strong>1\u3001\u5982\u4f55\u5728\u4e0a\u7ebf\u7684\u5e94\u7528\u7248\u672c\u4e2d\u53d1\u73b0\u65b0\u589e\u7684SQL\u8bed\u53e5\uff1b<\/strong><\/p>\n<p><strong>2\u3001\u65b0\u589eSQL\u5b58\u5728\u54ea\u4e9b\u95ee\u9898\uff0c\u5982\u4f55\u5feb\u901f\u51c6\u786e\u7684\u5b9a\u4f4d\uff1b<\/strong><\/p>\n<p><strong>3\u3001\u5bf9\u4e8e\u95ee\u9898SQL\uff0c\u5982\u4f55\u5feb\u901f\u63d0\u4f9b\u4f18\u5316\u65b9\u6848\u3002<\/strong><\/p>\n<p>\u8fd9\u4e09\u4e2a\u95ee\u9898\uff0c\u662f\u4e00\u73af\u6263\u4e00\u73af\u7684\uff0c\u89e3\u51b3\u4e0d\u4e86\u524d\u9762\u7684\u95ee\u9898\uff0c\u5c31\u65e0\u4ece\u89e3\u51b3\u540e\u9762\u7684\u95ee\u9898\u3002\u7136\u800c\uff0c\u5e94\u7528\u7cfb\u7edfSQL\u4f17\u591a\uff0c\u5982\u679c\u5355\u9760\u4eba\u5de5\uff0c\u96be\u5ea6\u662f\u5f88\u5927\u7684\uff0c\u4e13\u5bb6\u8d44\u6e90\u6295\u5165\u5c31\u66f4\u4e0d\u8bf4\u4e86\uff0c\u663e\u7136\u4e0d\u80fd\u6ee1\u8db3\u5f53\u4ecaIT\u7cfb\u7edf\u9ad8\u901f\u53d1\u5c55\u7684\u9700\u8981\u3002<\/p>\n<p>\u8fd9\u91cc\u8ddf\u5927\u5bb6\u5206\u4eab\u6211\u4eec\u5728\u8fd9\u65b9\u9762\u7684\u4e00\u4e9b\u5b9e\u8df5\u548c\u6210\u679c\u3002\u901a\u8fc7\u7ed3\u5408\u591a\u5e74\u7684\u8fd0\u7ef4\u548c\u4f18\u5316\u7ecf\u9a8c\uff0c\u6211\u4eec\u81ea\u4e3b\u7814\u53d1\u4e86SQL\u5ba1\u6838\u5de5\u5177\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u81ea\u52a8\u5316\u5b8c\u6210SQL\u4e0a\u7ebf\u5ba1\u6838\uff0c\u8fd8\u53ef\u4ee5\u505a\u5230SQL\u7684\u6027\u80fd\u76d1\u63a7\u548c\u81ea\u52a8\u4f18\u5316\uff0c\u8fbe\u5230SQL\u5168\u751f\u547d\u5468\u671f\u7ba1\u7406\u7684\u6548\u679c\u3002\u5bf9\u4e8eSQL\u4e0a\u7ebf\u5ba1\u6838\uff0c\u6211\u4eec\u5c06\u5f00\u53d1\u89c4\u8303\u89c4\u5219\u5316\u540e\u843d\u5230SQL\u5ba1\u6838\u5e73\u53f0\uff0c\u5185\u7f6e\u4e864\u4e2a\u7ef4\u5ea6\u3001200\u591a\u79cd\u5e38\u89c1\u7684\u5ba1\u67e5\u89c4\u5219\uff0c\u8fd8\u652f\u6301\u7075\u6d3b\u7684\u6309\u9700\u6dfb\u52a0\u89c4\u5219\u3002\u540c\u65f6\uff0c\u5ba1\u67e5\u7684\u4e0d\u53ea\u662fSQL\u8bed\u53e5\u672c\u8eab\uff0c\u8fd8\u5305\u62ec\u4e86\u5bf9\u8868\u7684\u6a21\u578b\u8bbe\u8ba1\u3001\u7d22\u5f15\u7684\u6784\u5efa\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05be9f64.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe24\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe24\" \/><\/p>\n<p>\u5728\u5e94\u7528\u65b0\u7248\u672c\u4e0a\u7ebf\u524d\uff0c\u901a\u8fc7SQL\u5ba1\u6838\u5e73\u53f0\uff0c\u81ea\u52a8\u5206\u6790\u51fa\u7248\u672c\u7684\u65b0\u589eSQL\uff0c\u57fa\u4e8e\u4ee5\u4e0a\u89c4\u5219\u5bf9\u65b0\u589eSQL\u8fdb\u884c\u5ba1\u67e5\uff0c\u5e76\u81ea\u52a8\u63d0\u4f9b\u4f18\u5316\u5efa\u8bae\uff0c\u53ef\u751f\u6210\u53ef\u89c6\u5316\u7684\u62a5\u8868\u548c\u8be6\u7ec6\u62a5\u544a\u3002\u4e0d\u7ba1\u662fDBA\u8fd8\u662f\u5f00\u53d1\u4eba\u5458\u90fd\u53ef\u4ee5\u57fa\u4e8e\u6b64\u5e73\u53f0\uff0c\u5bf9\u95ee\u9898\u8fdb\u884c\u786e\u8ba4\u548c\u89e3\u51b3\uff0c\u5b9e\u73b0\u7cfb\u7edf\u4f18\u5316\u524d\u79fb\u3001\u63d0\u5347\u5e94\u7528\u7248\u672c\u8d28\u91cf\u7684\u76ee\u6807\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241120\/1732108379673de05bec4c5.jpg\" class=\"aligncenter\" title=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe25\" alt=\"SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u63d2\u56fe25\" \/><\/p>\n<p><strong>\u4e09\u3001\u603b\u7ed3<\/strong>  <\/p>\n<p>\u672c\u6587\u4e3b\u8981\u548c\u5927\u5bb6\u5206\u4eab\u4e86SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u4e00\u4e9b\u5e38\u89c1\u60c5\u666f\u53ca\u89e3\u51b3\u65b9\u6cd5\uff0c\u5f53\u7136\uff0cSQL\u7684\u89c4\u8303\u5316\u4f7f\u7528\u662f\u5341\u5206\u91cd\u8981\u7684\uff0cSQL\u7684\u4f18\u5316\u4e5f\u4e0d\u4ec5\u4ec5\u5c40\u9650\u4e8e\u7d22\u5f15\u7684\u4f18\u5316\u3002\u6240\u4ee5\uff0c\u53ea\u6709\u5e73\u65f6\u591a\u79ef\u7d2f\uff0c\u7ed3\u5408\u7406\u8bba\u591a\u5b9e\u8df5\uff0c\u9047\u5230\u95ee\u9898\u65f6\u624d\u80fd\u8fd0\u7b79\u5e37\u5e44\uff0c\u5bf9\u75c7\u4e0b\u836f\u3001\u836f\u5230\u75c5\u9664\u3002\u53e6\u5916\uff0c\u4f01\u4e1a\u5728IT\u5efa\u8bbe\u4e2d\u8981\u91cd\u89c6\u5f00\u53d1\u89c4\u8303\u7684\u843d\u5730\u6267\u884c\uff0c\u5fc5\u8981\u65f6\u4f7f\u7528\u5408\u9002\u7684\u5de5\u5177\uff0c\u5728\u52a0\u901fIT\u73af\u5883\u5efa\u8bbe\u6548\u7387\u7684\u540c\u65f6\uff0c\u8fd8\u80fd\u517c\u987e\u5230IT\u7cfb\u7edf\u7684\u5efa\u8bbe\u8d28\u91cf\uff0c\u505a\u5230\u4e24\u4e0d\u8bef\u3002<\/p>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300aSQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8eLinux,Linux\u7cfb\u7edf,\u7ea2\u5e3d,Linux\u547d\u4ee4,linux\u8ba4\u8bc1,\u7ea2\u5e3dlinux,linux\u6559\u7a0b,linux\u89c6\u9891\u7684\u77e5\u8bc6\u70b9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def \u79ef\u7d2f\u77e5\u8bc6\uff0c\u80dc\u8fc7\u79ef\u84c4\u91d1\u94f6\uff01\u6bd5\u7adf\u5728\u6587\u7ae0\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u9047\u5230\u5404\u79cd\u5404\u6837\u7684\u95ee\u9898\uff0c\u5f80\u5f80\u90fd\u662f\u4e00\u4e9b\u7ec6\u8282\u77e5\u8bc6\u70b9\u8fd8\u6ca1\u6709\u638c\u63e1\u597d\u800c\u5bfc\u81f4\u7684\uff0c\u56e0\u6b64\u57fa\u7840\u77e5\u8bc6\u70b9\u7684\u79ef\u7d2f\u662f\u5f88\u91cd\u8981\u7684\u3002\u4e0b\u9762\u672c\u6587\u300aSQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def\u300b\uff0c\u5c31\u5e26\u5927\u5bb6\u8bb2\u89e3\u4e00\u4e0b\u77e5\u8bc6\u70b9\uff0c\u82e5\u662f\u4f60\u5bf9\u672c\u6587\u611f\u5174\u8da3\uff0c\u6216\u8005\u662f\u60f3\u641e\u61c2\u5176\u4e2d\u67d0\u4e2a\u77e5\u8bc6\u70b9\uff0c\u5c31\u8bf7\u4f60\u7ee7\u7eed\u5f80\u4e0b\u770b\u5427~ \u4e0a\u6b21\u4e01\u4fca\u5927\u5e08\u5728\u793e\u7fa4\u4e0a\u505a\u4e86CBO\u4f18\u5316\u5668\u548c\u5751\u7239\u6848\u4f8b\u7684\u5206\u4eab\u540e\uff0c\u53cd\u54cd\u4e0d\u662f\u4e00\u822c\u7684\u5f3a\u70c8\uff0c\u4f46\u5176\u4e2d\u4e5f\u6709\u4e00\u90e8\u5206\u540c\u5b66\u8868\u793a\u592a\u9ad8\u5927\u4e0a\u4e86\uff08\u6211\u4e5f\u662f\u8fd9\u6837\u89c9\u5f97\u7684\uff09\uff0c\u6d88\u5316\u8d77\u6765\u76f8\u5f53\u6709\u96be\u5ea6\uff0c\u4e8e\u662f\u4fbf\u6709\u4e86\u672c\u6587\u3002\u7ed5\u5f00\u590d\u6742\u7684CBO\u4f18\u5316\u5668\u4e0d\u8bf4\uff0c\u672c\u6587\u5c06\u5e2e\u4f60\u7406\u6e05\u90a3\u4e9b\u56e0\u4e3aSQL\u8bed\u53e5\u7f16\u5199\u89c4\u8303\u95ee\u9898\u5bfc\u81f4\u6ca1\u6709\u5145\u5206\u5229\u7528\u7d22\u5f15\u6765\u5927\u5e45\u63d0\u5347\u6548\u7387\u7684\u4f7f\u7528\u573a\u666f\u3002 \u4e00\u3001SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u53ca\u89e3\u51b3\u601d\u8def \u56e0\u4e3a\u6570\u636e\u5e93\u4f18\u5316\u5668\u4e0d\u591f\u667a\u80fd\uff0c\u6216\u8005\u4e00\u4e9b\u903b\u8f91\u539f\u56e0\uff0c\u5bfc\u81f4SQL\u5728\u6bd4\u8f83\u9002\u5408\u8d70\u7d22\u5f15\u7684\u60c5\u51b5\u4e0b\u5374\u65e0\u6cd5\u6b63\u786e\u5229\u7528\u7d22\u5f15\u3002\u8fd9\u65f6\u5019\uff0c\u9664\u4e86\u7ed9\u6570\u636e\u5e93\u9700\u8981\u7684\u7edf\u8ba1\u4fe1\u606f\u4e4b\u5916\uff0cSQL\u8bed\u53e5\u672c\u8eab\u8fd8\u5fc5\u987b\u8981\u7ed9\u4f18\u5316\u5668\u8db3\u591f\u591a\u7684\u989d\u5916\u6709\u6548\u4fe1\u606f\uff0c\u5e2e\u52a9\u4f18\u5316\u5668\u80fd\u591f\u9009\u62e9\u66f4\u597d\u7684\u6267\u884c\u8ba1\u5212\u3002\u8981\u8ba9\u4f18\u5316\u5668\u6b63\u786e\u9009\u62e9\u9700\u8981\u7684\u7d22\u5f15\uff0c\u8981\u8003\u8651\u4e24\u70b9\uff1a \u5982\u4f55\u907f\u514d\u4f18\u5316\u5668\u7684\u9650\u5236 \u6839\u636e\u4e1a\u52a1\u6570\u636e\u7279\u70b9\u6539\u5199SQL\u8bed\u53e5 \u8bf4\u660e\uff1a\u8fd9\u91cc\u8bf4\u7684\u8d70\u4e0d\u4e86\u7d22\u5f15\uff0c\u662f\u6307\u8d70\u4e0d\u4e86\u6b63\u5e38\u7684RANGE SCAN\uff0c\u975e(FAST) FULL INDEX SCAN\u3002 SQL\u65e0\u6cd5\u8d70\u7d22\u5f15\u5e38\u89c1\u7684\u6709\u5982\u4e0b8\u79cd\u60c5\u51b5\uff1a \u7edf\u8ba1\u4fe1\u606f\u4e0d\u51c6\u786e \u7d22\u5f15\u5217\u7684\u503c\u5141\u8bb8\u4e3aNULL \u8c13\u8bcd\u4f7f\u7528\u4e86\u4e0d\u7b49\u4e8e\uff08&lt;&gt;, !=\uff09 LIKE\u524d\u901a\u914d\u6216\u5168\u901a\u914d\u7684\u67e5\u8be2 \u7d22\u5f15\u5217\u4f7f\u7528\u4e86\u51fd\u6570\u3001\u6570\u5b66\u8fd0\u7b97\u3001\u5176\u5b83\u8868\u8fbe\u5f0f\u7b49 \u4f7f\u7528\u4e86\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362 \u67e5\u8be2\u8f6c\u6362\u5931\u8d25 \u5176\u5b83\u8bed\u53e5\u903b\u8f91\u539f\u56e0 \u7b2c\u4e00\u3001\u4e8c\u79cd\u60c5\u51b5\u5728\u73b0\u5b9e\u4e2d\u6bd4\u8f83\u5e38\u89c1\uff0c\u89e3\u51b3\u529e\u6cd5\u4e5f\u76f8\u5bf9\u6bd4\u8f83\u7b80\u5355\uff0c\u4e0b\u9762\u5c31\u4e0d\u518d\u4f5c\u8be6\u7ec6\u5c55\u5f00\u4e86\u3002 \u8c13\u8bcd\u4f7f\u7528\u4e86\u4e0d\u7b49\u4e8e(&lt;&gt;,!=)\uff0c\u8d70\u4e0d\u4e86\u7d22\u5f15 \u89e3\u51b3\u65b9\u6cd5\uff1a \u5982\u679c\u4e0d\u7b49\u6761\u4ef6\u4e4b\u5916\u7684\u503c\u4e0d\u591a\uff0c\u800c\u4e14\u662f\u786e\u5b9a\u7684\uff0c\u53ef\u4ee5\u6539\u4e3a\u7b49\u503c\u6216IN\u67e5\u8be2\uff0c\u6bd4\u5982status\u72b6\u6001\u5b57\u6bb5\u4e00\u822c\u503c\u7c7b\u522b\u5f88\u5c11\uff1b \u5982\u679c\u4e0d\u7b49\u6761\u4ef6\u4e4b\u5916\u7684\u503c\u5f88\u591a\uff0c\u53ef\u4ee5\u6539\u4e3a\u201c&gt; OR &lt;\u201d\u7684\u5f62\u5f0f\uff0c\u5f53\u7136\u7b2c2\u79cd\u65b9\u6cd5\u5305\u542b\u4e86\u65b9\u6cd51\u3002 \u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5148\u6784\u5efa\u6d4b\u8bd5\u573a\u666f\uff1a \u8c13\u8bcd\u4f7f\u7528&lt;&gt;\uff0c\u65e0\u6cd5\u5229\u7528\u7d22\u5f15\uff1a \u5c06&lt;&gt;\u6539\u5199\u4e3aOR\u8fde\u63a5\u540e\uff0c\u80fd\u591f\u6b63\u786e\u4f7f\u7528\u7d22\u5f15\uff0c\u8d70OR\u6269\u5c55\uff1a \u5982\u679c\u4e1a\u52a1\u5141\u8bb8\uff0c\u6539\u5199\u4e3a\u4e0b\u5217\u8bed\u53e5\u4e5f\u662f\u8d70\u7d22\u5f15\u7684\uff0c\u4e0d\u518d\u6f14\u793a\u3002 SELECT * FROM t&nbsp;WHERE t.NAME IN (\u2018ORADB1\u2032,\u2019ORADB2\u2032,\u2019ORADB3\u2019); LIKE\u524d\u901a\u914d\u6216\u5168\u901a\u914d\u7684\u67e5\u8be2\uff0c\u8d70\u4e0d\u4e86\u7d22\u5f15 \u89e3\u51b3\u65b9\u6cd5\uff0c\u6709\u5982\u4e0b\u4e09\u79cd\uff1a \uff081\uff09\u6839\u636e\u4e1a\u52a1\u9700\u6c42\uff0c\u662f\u5426\u53ef\u4ee5\u628a\u524d\u901a\u914d\u53bb\u6389 \u539f\u6765\u5168\u901a\u914d\uff0c\u65e0\u6cd5\u8d70\u7d22\u5f15\uff1a \u628a\u524d\u901a\u914d\u53bb\u6389\uff0c\u6539\u4e3a\u540e\u901a\u914d\uff0c\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u7d22\u5f15\uff1a \uff082\uff09\u548c\u6b64LIKE\u4e00\u6837\u7684\u524d\u901a\u914d\u6216\u5168\u901a\u914d\u7684SQL\u6709\u5f88\u591a\uff0c\u6b64\u8c13\u8bcd\u7684LIKE\u53d8\u5316\u4e0d\u5927\uff1f\u5982\u679c\u662f\uff0c\u8003\u8651\u5efa\u7acb\u51fd\u6570\u7d22\u5f15\uff0c\u5426\u5219\u5bf9\u4e8e\u5168\u901a\u914d\u95ee\u9898\u6700\u597d\u529e\u6cd5\u5c31\u662f\u5168\u6587\u7d22\u5f15\u3002 \u521b\u5efainstr\u51fd\u6570\u7d22\u5f15\uff1a \uff083\uff09\u5982\u679c\u53ea\u662f\u524d\u901a\u914d\uff0c\u53ef\u4ee5\u4f7f\u7528reverse\u51fd\u6570\u7d22\u5f15\uff08\u4e0d\u662f\u7ffb\u8f6c\u952e\u7d22\u5f15\uff09 \u539f\u59cb\u8bed\u53e5\uff1a SELECT &nbsp;* FROM t WHERE t.NAME [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52408","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52408","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=52408"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52408\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}