{"id":166935,"date":"2024-11-05T20:56:20","date_gmt":"2024-11-05T12:56:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/166935\/"},"modified":"2024-11-05T20:56:21","modified_gmt":"2024-11-05T12:56:21","slug":"%e7%90%86%e8%a7%a3%e9%97%9c%e4%bf%82%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%9f%ba%e6%9c%ac%e7%af%84%e5%bc%8f%ef%bc%8c%e6%89%93%e9%80%a0%e9%ab%98%e6%95%88%e6%95%b8%e6%93%9a%e7%ae%a1%e7%90%86%e7%b3%bb","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/166935\/","title":{"rendered":"\u7406\u89e3\u95dc\u4fc2\u6578\u64da\u5eab\u7684\u57fa\u672c\u7bc4\u5f0f\uff0c\u6253\u9020\u9ad8\u6548\u6578\u64da\u7ba1\u7406\u7cfb\u7d71 (\u95dc\u4fc2\u6578\u64da\u5eab\u57fa\u672c\u7bc4\u5f0f)"},"content":{"rendered":"<h1 id=\"%e7%90%86%e8%a7%a3%e9%97%9c%e4%bf%82%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%9f%ba%e6%9c%ac%e7%af%84%e5%bc%8f%ef%bc%8c%e6%89%93%e9%80%a0%e9%ab%98%e6%95%88%e6%95%b8%e6%93%9a%e7%ae%a1%e7%90%86%e7%b3%bb-WHyHdSyUnA\">\u7406\u89e3\u95dc\u4fc2\u6578\u64da\u5eab\u7684\u57fa\u672c\u7bc4\u5f0f\uff0c\u6253\u9020\u9ad8\u6548\u6578\u64da\u7ba1\u7406\u7cfb\u7d71<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u95dc\u4fc2\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff08RDBMS\uff09\u6210\u70ba\u4e86\u6578\u64da\u5b58\u5132\u548c\u7ba1\u7406\u7684\u4e3b\u6d41\u9078\u64c7\u3002\u70ba\u4e86\u6709\u6548\u5730\u8a2d\u8a08\u548c\u7ba1\u7406\u9019\u4e9b\u6578\u64da\u5eab\uff0c\u7406\u89e3\u95dc\u4fc2\u6578\u64da\u5eab\u7684\u57fa\u672c\u7bc4\u5f0f\u81f3\u95dc\u91cd\u8981\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u95dc\u4fc2\u6578\u64da\u5eab\u7684\u57fa\u672c\u7bc4\u5f0f\u53ca\u5176\u5728\u6578\u64da\u7ba1\u7406\u7cfb\u7d71\u4e2d\u7684\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af%e9%97%9c%e4%bf%82%e6%95%b8%e6%93%9a%e5%ba%ab%e7%af%84%e5%bc%8f%ef%bc%9f-WHyHdSyUnA\">\u4ec0\u9ebc\u662f\u95dc\u4fc2\u6578\u64da\u5eab\u7bc4\u5f0f\uff1f<\/h2>\n<p>\u7bc4\u5f0f\u662f\u6307\u6578\u64da\u5eab\u8a2d\u8a08\u4e2d\u7684\u4e00\u7d44\u898f\u5247\uff0c\u65e8\u5728\u6e1b\u5c11\u6578\u64da\u5197\u9918\u548c\u63d0\u9ad8\u6578\u64da\u5b8c\u6574\u6027\u3002\u95dc\u4fc2\u6578\u64da\u5eab\u7684\u7bc4\u5f0f\u4e3b\u8981\u5206\u70ba\u5e7e\u500b\u5c64\u6b21\uff0c\u901a\u5e38\u7a31\u70ba\u7b2c\u4e00\u7bc4\u5f0f\uff081NF\uff09\u3001\u7b2c\u4e8c\u7bc4\u5f0f\uff082NF\uff09\u3001\u7b2c\u4e09\u7bc4\u5f0f\uff083NF\uff09\u53ca\u66f4\u9ad8\u7684\u7bc4\u5f0f\u3002\u6bcf\u4e00\u500b\u7bc4\u5f0f\u90fd\u6709\u5176\u7279\u5b9a\u7684\u8981\u6c42\u548c\u76ee\u7684\u3002<\/p>\n<h2 id=\"%e7%ac%ac%e4%b8%80%e7%af%84%e5%bc%8f%ef%bc%881nf%ef%bc%89-WHyHdSyUnA\">\u7b2c\u4e00\u7bc4\u5f0f\uff081NF\uff09<\/h2>\n<p>\u7b2c\u4e00\u7bc4\u5f0f\u8981\u6c42\u6578\u64da\u8868\u4e2d\u7684\u6bcf\u4e00\u500b\u6b04\u4f4d\u90fd\u5fc5\u9808\u662f\u539f\u5b50\u6027\u7684\uff0c\u5373\u6bcf\u500b\u6b04\u4f4d\u53ea\u80fd\u5305\u542b\u4e00\u500b\u503c\u3002\u9019\u610f\u5473\u8457\u4e0d\u80fd\u5728\u540c\u4e00\u500b\u6b04\u4f4d\u4e2d\u5b58\u5132\u591a\u500b\u503c\u3002\u4f8b\u5982\uff0c\u8003\u616e\u4ee5\u4e0b\u7684\u9867\u5ba2\u8a02\u55ae\u8868\uff1a<\/p>\n<pre><code>\n\u9867\u5ba2ID | \u9867\u5ba2\u59d3\u540d | \u8a02\u55ae\u7de8\u865f\n1      | \u5f35\u4e09     | 1001, 1002\n2      | \u674e\u56db     | 1003\n<\/code><\/pre>\n<p>\u5728\u9019\u500b\u4f8b\u5b50\u4e2d\uff0c\u9867\u5ba2ID 1\u7684\u8a02\u55ae\u7de8\u865f\u6b04\u4f4d\u9055\u53cd\u4e86\u7b2c\u4e00\u7bc4\u5f0f\uff0c\u56e0\u70ba\u5b83\u5305\u542b\u4e86\u591a\u500b\u503c\u3002\u70ba\u4e86\u7b26\u54081NF\uff0c\u6211\u5011\u61c9\u8a72\u5c07\u5176\u62c6\u5206\u70ba\u591a\u884c\uff1a<\/p>\n<pre><code>\n\u9867\u5ba2ID | \u9867\u5ba2\u59d3\u540d | \u8a02\u55ae\u7de8\u865f\n1      | \u5f35\u4e09     | 1001\n1      | \u5f35\u4e09     | 1002\n2      | \u674e\u56db     | 1003\n<\/code><\/pre>\n<h2 id=\"%e7%ac%ac%e4%ba%8c%e7%af%84%e5%bc%8f%ef%bc%882nf%ef%bc%89-WHyHdSyUnA\">\u7b2c\u4e8c\u7bc4\u5f0f\uff082NF\uff09<\/h2>\n<p>\u7b2c\u4e8c\u7bc4\u5f0f\u8981\u6c42\u6578\u64da\u8868\u5fc5\u9808\u9996\u5148\u7b26\u5408\u7b2c\u4e00\u7bc4\u5f0f\uff0c\u4e26\u4e14\u6240\u6709\u975e\u4e3b\u9375\u6b04\u4f4d\u5fc5\u9808\u5b8c\u5168\u4f9d\u8cf4\u65bc\u4e3b\u9375\u3002\u9019\u610f\u5473\u8457\u4e0d\u80fd\u6709\u90e8\u5206\u4f9d\u8cf4\u3002\u4f8b\u5982\uff0c\u8003\u616e\u4ee5\u4e0b\u7684\u5b78\u751f\u8ab2\u7a0b\u8868\uff1a<\/p>\n<pre><code>\n\u5b78\u751fID | \u8ab2\u7a0bID | \u8ab2\u7a0b\u540d\u7a31\n1      | 101    | \u6578\u5b78\n1      | 102    | \u82f1\u6587\n2      | 101    | \u6578\u5b78\n<\/code><\/pre>\n<p>\u5728\u9019\u500b\u4f8b\u5b50\u4e2d\uff0c\u8ab2\u7a0b\u540d\u7a31\u4f9d\u8cf4\u65bc\u8ab2\u7a0bID\uff0c\u800c\u4e0d\u662f\u5b78\u751fID\u3002\u56e0\u6b64\uff0c\u6211\u5011\u9700\u8981\u5c07\u5176\u62c6\u5206\u70ba\u5169\u500b\u8868\uff1a<\/p>\n<pre><code>\n\u5b78\u751fID | \u8ab2\u7a0bID\n1      | 101\n1      | 102\n2      | 101\n\n\u8ab2\u7a0bID | \u8ab2\u7a0b\u540d\u7a31\n101    | \u6578\u5b78\n102    | \u82f1\u6587\n<\/code><\/pre>\n<h2 id=\"%e7%ac%ac%e4%b8%89%e7%af%84%e5%bc%8f%ef%bc%883nf%ef%bc%89-WHyHdSyUnA\">\u7b2c\u4e09\u7bc4\u5f0f\uff083NF\uff09<\/h2>\n<p>\u7b2c\u4e09\u7bc4\u5f0f\u8981\u6c42\u6578\u64da\u8868\u5fc5\u9808\u7b26\u5408\u7b2c\u4e8c\u7bc4\u5f0f\uff0c\u4e26\u4e14\u6240\u6709\u975e\u4e3b\u9375\u6b04\u4f4d\u5fc5\u9808\u76f4\u63a5\u4f9d\u8cf4\u65bc\u4e3b\u9375\uff0c\u800c\u4e0d\u80fd\u4f9d\u8cf4\u65bc\u5176\u4ed6\u975e\u4e3b\u9375\u6b04\u4f4d\u3002\u9019\u6709\u52a9\u65bc\u6d88\u9664\u50b3\u905e\u4f9d\u8cf4\u3002\u4f8b\u5982\uff0c\u8003\u616e\u4ee5\u4e0b\u7684\u54e1\u5de5\u8868\uff1a<\/p>\n<pre><code>\n\u54e1\u5de5ID | \u90e8\u9580ID | \u90e8\u9580\u540d\u7a31\n1      | 10     | \u92b7\u552e\n2      | 20     | \u6280\u8853\n3      | 10     | \u92b7\u552e\n<\/code><\/pre>\n<p>\u5728\u9019\u500b\u4f8b\u5b50\u4e2d\uff0c\u90e8\u9580\u540d\u7a31\u4f9d\u8cf4\u65bc\u90e8\u9580ID\uff0c\u800c\u4e0d\u662f\u54e1\u5de5ID\u3002\u56e0\u6b64\uff0c\u6211\u5011\u9700\u8981\u5c07\u5176\u62c6\u5206\u70ba\u5169\u500b\u8868\uff1a<\/p>\n<pre><code>\n\u54e1\u5de5ID | \u90e8\u9580ID\n1      | 10\n2      | 20\n3      | 10\n\n\u90e8\u9580ID | \u90e8\u9580\u540d\u7a31\n10     | \u92b7\u552e\n20     | \u6280\u8853\n<\/code><\/pre>\n<h2 id=\"%e6%9b%b4%e9%ab%98%e7%9a%84%e7%af%84%e5%bc%8f-WHyHdSyUnA\">\u66f4\u9ad8\u7684\u7bc4\u5f0f<\/h2>\n<p>\u9664\u4e861NF\u30012NF\u548c3NF\u4e4b\u5916\uff0c\u9084\u6709BCNF\uff08\u535a\u4f0a\u65af-\u79d1\u5f97\u7bc4\u5f0f\uff09\u548c4NF\uff08\u7b2c\u56db\u7bc4\u5f0f\uff09\u7b49\u66f4\u9ad8\u7684\u7bc4\u5f0f\u3002\u9019\u4e9b\u7bc4\u5f0f\u9032\u4e00\u6b65\u5f37\u5316\u4e86\u6578\u64da\u7684\u5b8c\u6574\u6027\u548c\u4e00\u81f4\u6027\uff0c\u9069\u7528\u65bc\u66f4\u8907\u96dc\u7684\u6578\u64da\u7d50\u69cb\u548c\u95dc\u4fc2\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-WHyHdSyUnA\">\u7d50\u8ad6<\/h2>\n<p>\u7406\u89e3\u95dc\u4fc2\u6578\u64da\u5eab\u7684\u57fa\u672c\u7bc4\u5f0f\u5c0d\u65bc\u8a2d\u8a08\u9ad8\u6548\u7684\u6578\u64da\u7ba1\u7406\u7cfb\u7d71\u81f3\u95dc\u91cd\u8981\u3002\u901a\u904e\u9075\u5faa\u9019\u4e9b\u7bc4\u5f0f\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u6e1b\u5c11\u6578\u64da\u5197\u9918\uff0c\u63d0\u9ad8\u6578\u64da\u5b8c\u6574\u6027\uff0c\u4e26\u78ba\u4fdd\u6578\u64da\u7684\u6e96\u78ba\u6027\u3002\u7121\u8ad6\u662f\u5c0f\u578b\u61c9\u7528\u9084\u662f\u5927\u578b\u4f01\u696d\u7cfb\u7d71\uff0c\u826f\u597d\u7684\u6578\u64da\u5eab\u8a2d\u8a08\u90fd\u662f\u6210\u529f\u7684\u95dc\u9375\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684\u6578\u64da\u7ba1\u7406\u89e3\u6c7a\u65b9\u6848\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u6216<a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a>\u4f86\u652f\u6301\u60a8\u7684\u6578\u64da\u5eab\u9700\u6c42\u3002\u7121\u8ad6\u662f\u95dc\u4fc2\u6578\u64da\u5eab\u9084\u662f\u5176\u4ed6\u985e\u578b\u7684\u6578\u64da\u5b58\u5132\uff0c\u9078\u64c7\u5408\u9069\u7684\u670d\u52d9\u5668\u53ef\u4ee5\u986f\u8457\u63d0\u5347\u60a8\u7684\u7cfb\u7d71\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22\u95dc\u4fc2\u6578\u64da\u5eab\u7684\u57fa\u672c\u7bc4\u5f0f\uff0c\u5b78\u7fd2\u5982\u4f55\u69cb\u5efa\u9ad8\u6548\u7684\u6578\u64da\u7ba1\u7406\u7cfb\u7d71\uff0c\u63d0\u5347\u6578\u64da\u7d44\u7e54\u8207\u67e5\u8a62\u6548\u7387\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-166935","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/166935","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=166935"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/166935\/revisions"}],"predecessor-version":[{"id":166936,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/166935\/revisions\/166936"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=166935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=166935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=166935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}