{"id":200871,"date":"2025-05-06T13:52:17","date_gmt":"2025-05-06T05:52:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/200871\/"},"modified":"2025-05-06T13:52:17","modified_gmt":"2025-05-06T05:52:17","slug":"%e6%95%b0%e6%8d%ae%e5%ba%93%e8%a7%84%e8%8c%83%e5%8c%96%e5%88%9d%e5%ad%a6%e8%80%85%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/200871\/","title":{"rendered":"\u6570\u636e\u5e93\u89c4\u8303\u5316\u521d\u5b66\u8005\u6307\u5357"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>\u6570\u636e\u5e93\u89c4\u8303\u5316\u521d\u5b66\u8005\u6307\u5357<\/h1>\n<p>\u5b66\u4e60\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0\u5c06\u4f1a\u4ecb\u7ecd\u5230\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241118\/1731913246673ae61ec6b64.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u6570\u636e\u5e93\u89c4\u8303\u5316<\/strong>\uff1a\u662f\u5728\u6570\u636e\u5e93\u4e2d\u7ec4\u7ec7\u6570\u636e\u4ee5\u51cf\u5c11\u5197\u4f59\u5e76\u63d0\u9ad8\u6570\u636e\u5b8c\u6574\u6027\u7684\u8fc7\u7a0b\u3002\u4ee5\u4e0b\u662f\u5173\u952e\u8303\u5f0f\u7684\u5feb\u901f\u6982\u8ff0\uff0c\u5e76\u9644\u6709\u793a\u4f8b\u3002<\/p>\n<p><strong>1\u3002\u7b2c\u4e00\u8303\u5f0f (1nf)<\/strong><br \/> \u76ee\u6807\uff1a\u786e\u4fdd\u6bcf\u5217\u5305\u542b\u539f\u5b50\u503c\u5e76\u4e14\u6bcf\u6761\u8bb0\u5f55\u90fd\u662f\u552f\u4e00\u7684\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p>1nf \u4e4b\u524d\uff1a<\/p>\n<pre>table: studentcourses\n----------------------------\nstudentid | name   | courses\n----------------------------\n1         | alice  | math, science\n\n<\/pre>\n<p><strong>2\u3002\u7b2c\u4e8c\u8303\u5f0f (2nf)<\/strong><br \/> \u76ee\u6807\uff1a\u6d88\u9664\u90e8\u5206\u4f9d\u8d56\uff1b\u6bcf\u4e2a\u975e\u952e\u5c5e\u6027\u90fd\u5e94\u8be5\u4f9d\u8d56\u4e8e\u6574\u4e2a\u4e3b\u952e\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p>2nf \u4e4b\u524d\uff1a<\/p>\n<pre>table: studentcourses\n----------------------------\nstudentid | course | instructor\n----------------------------\n1         | math   | dr. smith\n<\/pre>\n<p>2nf\u4e4b\u540e\uff1a<\/p>\n<pre>table: studentcourses\n----------------------------\nstudentid | course\n----------------------------\n1         | math\n<\/pre>\n<pre>table: courseinstructors\n----------------------------\ncourse    | instructor\n----------------------------\nmath      | dr. smith\n<\/pre>\n<p><strong>3\u3002\u7b2c\u4e09\u8303\u5f0f (3nf)<\/strong><br \/> \u76ee\u6807\uff1a\u6d88\u9664\u4f20\u9012\u4f9d\u8d56\uff1b\u975e\u952e\u5c5e\u6027\u5e94\u8be5\u53ea\u4f9d\u8d56\u4e8e\u4e3b\u952e\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p>3nf \u4e4b\u524d\uff1a<\/p>\n<pre>table: studentcourses\n-----------------------------------\nstudentid | course | instructor | dept\n-----------------------------------\n1         | math   | dr. smith  | science\n\n<\/pre>\n<p>3nf\u4e4b\u540e\uff1a<\/p>\n<pre>table: studentcourses\n----------------------------\nstudentid | course\n----------------------------\n1         | math\n\n<\/pre>\n<pre>table: courseinstructors\n----------------------------\ninstructor | dept\n----------------------------\ndr. smith  | science\n\n<\/pre>\n<p><strong>4\u3002\u535a\u4f0a\u65af-\u79d1\u5fb7\u8303\u5f0f (bcnf)<\/strong><br \/> \u76ee\u6807\uff1a\u5904\u7406\u5f02\u5e38\u7684\u66f4\u4e25\u683c\u7248\u672c\u7684 3nf\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p>bcnf \u4e4b\u524d\uff1a<\/p>\n<pre>table: teachercourses\n------------------------------\nteacherid | course    | dept\n------------------------------\n1         | math      | science\n\n<\/pre>\n<p>bcnf \u4e4b\u540e\uff1a<\/p>\n<pre>table: teachercourses\n----------------------------\nteacherid | course\n----------------------------\n1         | math\n\n<\/pre>\n<pre>table: coursedepartments\n----------------------------\ncourse    | dept\n----------------------------\nmath      | science\n\n<\/pre>\n<p><strong>5\u3002\u7b2c\u56db\u8303\u5f0f (4nf)<\/strong><br \/> \u76ee\u6807\uff1a\u6d88\u9664\u591a\u503c\u4f9d\u8d56\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p>4nf \u4e4b\u524d\uff1a<\/p>\n<pre>table: studenthobbies\n----------------------------\nstudentid | course | hobby\n----------------------------\n1         | math   | chess\n\n<\/pre>\n<p>4nf\u4e4b\u540e\uff1a<\/p>\n<pre>table: studentcourses\n----------------------------\nstudentid | course\n----------------------------\n1         | math\n\n<\/pre>\n<pre>table: studenthobbies\n----------------------------\nstudentid | hobby\n----------------------------\n1         | chess\n\n<\/pre>\n<p><strong>6\u3002\u7b2c\u4e94\u8303\u5f0f (5nf)<\/strong><br \/> \u76ee\u6807\uff1a\u5904\u7406\u590d\u6742\u7684\u8fde\u63a5\u4f9d\u8d56\u5173\u7cfb\uff1b\u8fdb\u4e00\u6b65\u5206\u89e3\u8868\u683c\u800c\u4e0d\u4e22\u5931\u4fe1\u606f\u3002<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p>5nf \u4e4b\u524d\uff1a<\/p>\n<pre>table: projectassignments\n---------------------------------\nemployeeid | project | role\n---------------------------------\n1          | a       | developer\n\n<\/pre>\n<p>5nf\u4e4b\u540e\uff1a<\/p>\n<pre>table: employeeprojects\n----------------------------\nemployeeid | project\n----------------------------\n1          | a\n\n<\/pre>\n<pre>table: employeeroles\n----------------------------\nemployeeid | role\n----------------------------\n1          | developer\n\n<\/pre>\n<pre>Table: ProjectRoles\n----------------------------\nProject | Role\n----------------------------\nA       | Developer\n\n<\/pre>\n<p><strong>\u7ed3\u8bba<\/strong><br \/> \u89c4\u8303\u5316\u53ef\u786e\u4fdd\u60a8\u7684\u6570\u636e\u5e93\u4fdd\u6301\u9ad8\u6548\u3001\u4e00\u81f4\u548c\u53ef\u6269\u5c55\uff0c\u4ece\u800c\u968f\u7740\u6570\u636e\u7684\u589e\u957f\u7b80\u5316\u7ba1\u7406\u5e76\u589e\u5f3a\u67e5\u8be2\u6027\u80fd\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u300a\u6570\u636e\u5e93\u89c4\u8303\u5316\u521d\u5b66\u8005\u6307\u5357\u300b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u5173\u4e8e\u7684\u8d44\u6599\u8bf7\u5173\u6ce8\u4e3b\u673a\u5b9d\u8d1d\u516c\u4f17\u53f7\uff01<\/p>\n<p> \u7248\u672c\u58f0\u660e \u672c\u6587\u8f6c\u8f7d\u4e8e\uff1adev.to \u5982\u6709\u4fb5\u72af\uff0c\u8bf7\u8054\u7cfb \u5220\u9664 <\/p>\n<dl>\n<dt>\n <\/dt>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u636e\u5e93\u89c4\u8303\u5316\u521d\u5b66\u8005\u6307\u5357 \u5b66\u4e60\u8981\u52aa&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-200871","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/200871","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"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=200871"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/200871\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=200871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=200871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=200871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}