{"id":190446,"date":"2024-11-12T12:39:19","date_gmt":"2024-11-12T04:39:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/190446\/"},"modified":"2024-11-12T12:39:21","modified_gmt":"2024-11-12T04:39:21","slug":"%e7%82%ba%e4%bb%80%e9%ba%bc%e9%98%bf%e9%87%8c%e5%b7%b4%e5%b7%b4%e7%a6%81%e6%ad%a2%e6%95%b8%e6%93%9a%e5%ba%ab%e4%b8%ad%e5%81%9a%e5%a4%9a%e8%a1%a8join%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/190446\/","title":{"rendered":"\u70ba\u4ec0\u9ebc\u963f\u91cc\u5df4\u5df4\u7981\u6b62\u6578\u64da\u5eab\u4e2d\u505a\u591a\u8868join\uff1f"},"content":{"rendered":"<h1 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e9%98%bf%e9%87%8c%e5%b7%b4%e5%b7%b4%e7%a6%81%e6%ad%a2%e6%95%b8%e6%93%9a%e5%ba%ab%e4%b8%ad%e5%81%9a%e5%a4%9a%e8%a1%a8join%ef%bc%9f-ZiucGxhLVm\">\u70ba\u4ec0\u9ebc\u963f\u91cc\u5df4\u5df4\u7981\u6b62\u6578\u64da\u5eab\u4e2d\u505a\u591a\u8868join\uff1f<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u64da\u9a45\u52d5\u6642\u4ee3\uff0c\u6578\u64da\u5eab\u7684\u8a2d\u8a08\u548c\u67e5\u8a62\u6548\u7387\u5c0d\u65bc\u4f01\u696d\u7684\u904b\u71df\u81f3\u95dc\u91cd\u8981\u3002\u963f\u91cc\u5df4\u5df4\u4f5c\u70ba\u5168\u7403\u6700\u5927\u7684\u96fb\u5b50\u5546\u52d9\u5e73\u53f0\u4e4b\u4e00\uff0c\u5176\u6578\u64da\u5eab\u7ba1\u7406\u7b56\u7565\u5f15\u8d77\u4e86\u5ee3\u6cdb\u7684\u95dc\u6ce8\u3002\u5176\u4e2d\uff0c\u963f\u91cc\u5df4\u5df4\u7981\u6b62\u5728\u5176\u6578\u64da\u5eab\u4e2d\u9032\u884c\u591a\u8868join\u7684\u505a\u6cd5\uff0c\u6210\u70ba\u4e86\u696d\u754c\u71b1\u8b70\u7684\u8a71\u984c\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u9019\u4e00\u6c7a\u7b56\u7684\u80cc\u5f8c\u539f\u56e0\u53ca\u5176\u5c0d\u6578\u64da\u5eab\u6027\u80fd\u7684\u5f71\u97ff\u3002<\/p>\n<h2 id=\"%e5%a4%9a%e8%a1%a8join%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5-ZiucGxhLVm\">\u591a\u8868join\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<p>\u5728\u6578\u64da\u5eab\u4e2d\uff0cjoin\u64cd\u4f5c\u662f\u7528\u4f86\u5c07\u4f86\u81ea\u4e0d\u540c\u8868\u7684\u6578\u64da\u6839\u64da\u67d0\u4e9b\u689d\u4ef6\u9032\u884c\u7d44\u5408\u7684\u904e\u7a0b\u3002\u9019\u7a2e\u64cd\u4f5c\u5728\u95dc\u806f\u6578\u64da\u5eab\u4e2d\u975e\u5e38\u5e38\u898b\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u5f9e\u591a\u500b\u8868\u4e2d\u63d0\u53d6\u4fe1\u606f\u7684\u60c5\u6cc1\u4e0b\u3002\u5e38\u898b\u7684join\u985e\u578b\u5305\u62ecinner join\u3001left join\u3001right join\u7b49\u3002<\/p>\n<h2 id=\"%e9%98%bf%e9%87%8c%e5%b7%b4%e5%b7%b4%e7%9a%84%e6%95%b8%e6%93%9a%e5%ba%ab%e6%9e%b6%e6%a7%8b-ZiucGxhLVm\">\u963f\u91cc\u5df4\u5df4\u7684\u6578\u64da\u5eab\u67b6\u69cb<\/h2>\n<p>\u963f\u91cc\u5df4\u5df4\u7684\u6578\u64da\u5eab\u67b6\u69cb\u4e3b\u8981\u57fa\u65bc\u5206\u4f48\u5f0f\u7cfb\u7d71\uff0c\u9019\u610f\u5473\u8457\u6578\u64da\u88ab\u5206\u6563\u5b58\u5132\u5728\u591a\u500b\u7bc0\u9ede\u4e0a\u3002\u9019\u7a2e\u67b6\u69cb\u7684\u512a\u52e2\u5728\u65bc\u53ef\u4ee5\u63d0\u9ad8\u6578\u64da\u7684\u53ef\u7528\u6027\u548c\u64f4\u5c55\u6027\u3002\u7136\u800c\uff0c\u9019\u4e5f\u5e36\u4f86\u4e86\u6578\u64da\u67e5\u8a62\u7684\u8907\u96dc\u6027\uff0c\u7279\u5225\u662f\u5728\u9032\u884c\u591a\u8868join\u6642\u3002<\/p>\n<h2 id=\"%e7%a6%81%e6%ad%a2%e5%a4%9a%e8%a1%a8join%e7%9a%84%e5%8e%9f%e5%9b%a0-ZiucGxhLVm\">\u7981\u6b62\u591a\u8868join\u7684\u539f\u56e0<\/h2>\n<h3 id=\"1-%e6%80%a7%e8%83%bd%e5%95%8f%e9%a1%8c-ZiucGxhLVm\">1. \u6027\u80fd\u554f\u984c<\/h3>\n<p>\u591a\u8868join\u64cd\u4f5c\u901a\u5e38\u9700\u8981\u5927\u91cf\u7684\u8a08\u7b97\u8cc7\u6e90\uff0c\u5c24\u5176\u662f\u5728\u6578\u64da\u91cf\u9f90\u5927\u7684\u60c5\u6cc1\u4e0b\u3002\u963f\u91cc\u5df4\u5df4\u7684\u6578\u64da\u5eab\u9700\u8981\u8655\u7406\u6bcf\u79d2\u6578\u767e\u842c\u7684\u8acb\u6c42\uff0c\u9019\u4f7f\u5f97\u4efb\u4f55\u6027\u80fd\u74f6\u9838\u90fd\u53ef\u80fd\u5c0e\u81f4\u7cfb\u7d71\u7684\u5d29\u6f70\u3002\u56e0\u6b64\uff0c\u70ba\u4e86\u78ba\u4fdd\u7cfb\u7d71\u7684\u7a69\u5b9a\u6027\u548c\u9ad8\u6548\u6027\uff0c\u963f\u91cc\u5df4\u5df4\u9078\u64c7\u7981\u6b62\u591a\u8868join\u3002<\/p>\n<h3 id=\"2-%e6%95%b8%e6%93%9a%e4%b8%80%e8%87%b4%e6%80%a7-ZiucGxhLVm\">2. \u6578\u64da\u4e00\u81f4\u6027<\/h3>\n<p>\u5728\u5206\u4f48\u5f0f\u7cfb\u7d71\u4e2d\uff0c\u6578\u64da\u7684\u4e00\u81f4\u6027\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u591a\u8868join\u53ef\u80fd\u5c0e\u81f4\u6578\u64da\u4e0d\u4e00\u81f4\u7684\u60c5\u6cc1\uff0c\u7279\u5225\u662f\u5728\u6578\u64da\u66f4\u65b0\u983b\u7e41\u7684\u74b0\u5883\u4e2d\u3002\u963f\u91cc\u5df4\u5df4\u5e0c\u671b\u901a\u904e\u7c21\u5316\u67e5\u8a62\u4f86\u6e1b\u5c11\u9019\u7a2e\u98a8\u96aa\uff0c\u5f9e\u800c\u63d0\u9ad8\u6578\u64da\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<h3 id=\"3-%e5%8f%af%e6%93%b4%e5%b1%95%e6%80%a7-ZiucGxhLVm\">3. \u53ef\u64f4\u5c55\u6027<\/h3>\n<p>\u96a8\u8457\u696d\u52d9\u7684\u589e\u9577\uff0c\u6578\u64da\u91cf\u4e5f\u5728\u4e0d\u65b7\u589e\u52a0\u3002\u591a\u8868join\u64cd\u4f5c\u7684\u8907\u96dc\u6027\u4f7f\u5f97\u7cfb\u7d71\u7684\u64f4\u5c55\u8b8a\u5f97\u66f4\u52a0\u56f0\u96e3\u3002\u963f\u91cc\u5df4\u5df4\u901a\u904e\u7981\u6b62\u9019\u7a2e\u64cd\u4f5c\uff0c\u80fd\u5920\u66f4\u5bb9\u6613\u5730\u64f4\u5c55\u5176\u6578\u64da\u5eab\u67b6\u69cb\uff0c\u4ee5\u61c9\u5c0d\u672a\u4f86\u7684\u9700\u6c42\u3002<\/p>\n<h2 id=\"%e6%9b%bf%e4%bb%a3%e6%96%b9%e6%a1%88-ZiucGxhLVm\">\u66ff\u4ee3\u65b9\u6848<\/h2>\n<p>\u96d6\u7136\u7981\u6b62\u591a\u8868join\u53ef\u80fd\u6703\u5e36\u4f86\u4e00\u4e9b\u6311\u6230\uff0c\u4f46\u963f\u91cc\u5df4\u5df4\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e9b\u66ff\u4ee3\u65b9\u6848\u4f86\u6eff\u8db3\u7528\u6236\u7684\u9700\u6c42\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u6578\u64da\u5197\u9918\u548c\u9810\u8a08\u7b97\u6280\u8853\u4f86\u63d0\u524d\u8a08\u7b97\u548c\u5b58\u5132\u6240\u9700\u7684\u6578\u64da\uff0c\u5f9e\u800c\u6e1b\u5c11\u67e5\u8a62\u6642\u7684\u8a08\u7b97\u8ca0\u64d4\u3002\u6b64\u5916\uff0c\u963f\u91cc\u5df4\u5df4\u9084\u9f13\u52f5\u4f7f\u7528NoSQL\u6578\u64da\u5eab\uff0c\u9019\u4e9b\u6578\u64da\u5eab\u901a\u5e38\u4e0d\u9700\u8981\u9032\u884c\u591a\u8868join\u64cd\u4f5c\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-ZiucGxhLVm\">\u7d50\u8ad6<\/h2>\n<p>\u963f\u91cc\u5df4\u5df4\u7981\u6b62\u5728\u5176\u6578\u64da\u5eab\u4e2d\u9032\u884c\u591a\u8868join\u7684\u6c7a\u7b56\uff0c\u4e3b\u8981\u662f\u57fa\u65bc\u6027\u80fd\u3001\u6578\u64da\u4e00\u81f4\u6027\u548c\u53ef\u64f4\u5c55\u6027\u7684\u8003\u91cf\u3002\u9019\u4e00\u7b56\u7565\u96d6\u7136\u5728\u77ed\u671f\u5167\u53ef\u80fd\u6703\u589e\u52a0\u958b\u767c\u7684\u8907\u96dc\u6027\uff0c\u4f46\u5f9e\u9577\u9060\u4f86\u770b\uff0c\u537b\u80fd\u5920\u70ba\u7cfb\u7d71\u7684\u7a69\u5b9a\u6027\u548c\u9ad8\u6548\u6027\u63d0\u4f9b\u4fdd\u969c\u3002\u96a8\u8457\u6280\u8853\u7684\u9032\u6b65\uff0c\u672a\u4f86\u53ef\u80fd\u6703\u51fa\u73fe\u66f4\u591a\u7684\u89e3\u6c7a\u65b9\u6848\u4f86\u61c9\u5c0d\u9019\u4e00\u6311\u6230\u3002<\/p>\n<p>\u5982\u679c\u60a8\u5c0d\u65bc\u6578\u64da\u5eab\u7ba1\u7406\u548c\u6027\u80fd\u512a\u5316\u6709\u8208\u8da3\uff0c\u4e26\u5e0c\u671b\u4e86\u89e3\u66f4\u591a\u95dc\u65bc<code><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/code>\u548c<code><a href=\"https:\/\/server.hk\">\u96f2\u4f3a\u670d\u5668<\/a><\/code>\u7684\u8cc7\u8a0a\uff0c\u6b61\u8fce\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u8cc7\u6599\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u963f\u91cc\u5df4\u5df4\u7981\u6b62\u6578\u64da\u5eab\u4e2d\u505a\u591a\u8868join\uff0c\u56e0\u70ba\u9019\u6703\u5f71\u97ff\u6027\u80fd\u548c\u53ef\u64f4\u5c55\u6027\uff0c\u5c0e\u81f4\u67e5\u8a62\u6548\u7387\u4f4e\u4e0b\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-190446","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/190446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=190446"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/190446\/revisions"}],"predecessor-version":[{"id":190447,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/190446\/revisions\/190447"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=190446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=190446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=190446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}