{"id":181376,"date":"2024-11-09T16:32:17","date_gmt":"2024-11-09T08:32:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/181376\/"},"modified":"2024-11-09T16:32:18","modified_gmt":"2024-11-09T08:32:18","slug":"%e6%b7%b1%e5%85%a5%e6%b7%ba%e5%87%ba%ef%bc%9a%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8e%9f%e7%90%86%e5%9c%a8%e7%b7%9a%e4%bd%9c%e6%a5%ad%e5%88%9d%e6%8e%a2%ef%bc%88%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8e%9f%e7%90%86","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/181376\/","title":{"rendered":"\u6df1\u5165\u6dfa\u51fa\uff1a\u6578\u64da\u5eab\u539f\u7406\u5728\u7dda\u4f5c\u696d\u521d\u63a2\uff08\u6578\u64da\u5eab\u539f\u7406\u5728\u7dda\u4f5c\u696d\uff09"},"content":{"rendered":"<h1 id=\"%e6%b7%b1%e5%85%a5%e6%b7%ba%e5%87%ba%ef%bc%9a%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8e%9f%e7%90%86%e5%9c%a8%e7%b7%9a%e4%bd%9c%e6%a5%ad%e5%88%9d%e6%8e%a2%ef%bc%88%e6%95%b8%e6%93%9a%e5%ba%ab%e5%8e%9f%e7%90%86-yxeumQQMCX\">\u6df1\u5165\u6dfa\u51fa\uff1a\u6578\u64da\u5eab\u539f\u7406\u5728\u7dda\u4f5c\u696d\u521d\u63a2\uff08\u6578\u64da\u5eab\u539f\u7406\u5728\u7dda\u4f5c\u696d\uff09<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u4f7f\u7528\u5df2\u6210\u70ba\u5404\u884c\u5404\u696d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u7121\u8ad6\u662f\u4f01\u696d\u7ba1\u7406\u3001\u96fb\u5b50\u5546\u52d9\u9084\u662f\u793e\u4ea4\u5a92\u9ad4\uff0c\u6578\u64da\u5eab\u90fd\u5728\u80cc\u5f8c\u652f\u6301\u8457\u5404\u7a2e\u61c9\u7528\u7684\u904b\u884c\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u6578\u64da\u5eab\u7684\u57fa\u672c\u539f\u7406\uff0c\u4e26\u4ecb\u7d39\u5982\u4f55\u9032\u884c\u5728\u7dda\u4f5c\u696d\uff0c\u4ee5\u5e6b\u52a9\u8b80\u8005\u66f4\u597d\u5730\u7406\u89e3\u9019\u4e00\u91cd\u8981\u6280\u8853\u3002<\/p>\n<h2 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5-yxeumQQMCX\">\u6578\u64da\u5eab\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<p>\u6578\u64da\u5eab\u662f\u4e00\u7a2e\u6709\u7d44\u7e54\u7684\u6578\u64da\u96c6\u5408\uff0c\u901a\u5e38\u4ee5\u96fb\u5b50\u65b9\u5f0f\u5b58\u5132\u5728\u8a08\u7b97\u6a5f\u7cfb\u7d71\u4e2d\u3002\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff08DBMS\uff09\u662f\u7528\u4f86\u5275\u5efa\u3001\u7ba1\u7406\u548c\u64cd\u4f5c\u6578\u64da\u5eab\u7684\u8edf\u4ef6\u3002\u5e38\u898b\u7684\u6578\u64da\u5eab\u985e\u578b\u5305\u62ec\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff08\u5982MySQL\u3001PostgreSQL\uff09\u548c\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff08\u5982MongoDB\u3001Cassandra\uff09\u3002<\/p>\n<h3 id=\"%e9%97%9c%e4%bf%82%e5%9e%8b%e6%95%b8%e6%93%9a%e5%ba%ab-yxeumQQMCX\">\u95dc\u4fc2\u578b\u6578\u64da\u5eab<\/h3>\n<p>\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u4f7f\u7528\u8868\u683c\u4f86\u5b58\u5132\u6578\u64da\uff0c\u8868\u683c\u7531\u884c\u548c\u5217\u7d44\u6210\u3002\u6bcf\u4e00\u884c\u4ee3\u8868\u4e00\u500b\u8a18\u9304\uff0c\u800c\u6bcf\u4e00\u5217\u5247\u4ee3\u8868\u8a18\u9304\u7684\u5c6c\u6027\u3002\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7684\u4e3b\u8981\u7279\u9ede\u662f\u6578\u64da\u7684\u7d50\u69cb\u5316\u548c\u6578\u64da\u4e4b\u9593\u7684\u95dc\u806f\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u7c21\u55ae\u7684SQL\u67e5\u8a62\u793a\u4f8b\uff1a<\/p>\n<pre><code>SELECT * FROM users WHERE age &gt; 18;<\/code><\/pre>\n<p>\u9019\u689d\u67e5\u8a62\u5c07\u5f9e\u540d\u70ba\u201cusers\u201d\u7684\u8868\u4e2d\u9078\u64c7\u6240\u6709\u5e74\u9f61\u5927\u65bc18\u7684\u7528\u6236\u3002<\/p>\n<h3 id=\"%e9%9d%9e%e9%97%9c%e4%bf%82%e5%9e%8b%e6%95%b8%e6%93%9a%e5%ba%ab-yxeumQQMCX\">\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab<\/h3>\n<p>\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u5247\u4e0d\u4f7f\u7528\u8868\u683c\u7d50\u69cb\uff0c\u800c\u662f\u4ee5\u6587\u6a94\u3001\u9375\u503c\u5c0d\u6216\u5716\u5f62\u7684\u5f62\u5f0f\u5b58\u5132\u6578\u64da\u3002\u9019\u7a2e\u9748\u6d3b\u6027\u4f7f\u5f97\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u5728\u8655\u7406\u5927\u6578\u64da\u548c\u9ad8\u4e26\u767c\u8acb\u6c42\u6642\u8868\u73fe\u51fa\u8272\u3002\u4f8b\u5982\uff0cMongoDB\u4f7f\u7528JSON\u683c\u5f0f\u4f86\u5b58\u5132\u6578\u64da\uff0c\u9019\u4f7f\u5f97\u6578\u64da\u7684\u8b80\u53d6\u548c\u5beb\u5165\u66f4\u52a0\u9ad8\u6548\u3002<\/p>\n<h2 id=\"%e5%9c%a8%e7%b7%9a%e4%bd%9c%e6%a5%ad%e7%9a%84%e6%84%8f%e7%be%a9-yxeumQQMCX\">\u5728\u7dda\u4f5c\u696d\u7684\u610f\u7fa9<\/h2>\n<p>\u96a8\u8457\u6559\u80b2\u548c\u6280\u8853\u7684\u767c\u5c55\uff0c\u8d8a\u4f86\u8d8a\u591a\u7684\u5b78\u6821\u548c\u6a5f\u69cb\u958b\u59cb\u4f7f\u7528\u5728\u7dda\u4f5c\u696d\u4f86\u6559\u5b78\u548c\u8a55\u4f30\u5b78\u751f\u3002\u6578\u64da\u5eab\u539f\u7406\u7684\u5728\u7dda\u4f5c\u696d\u4e0d\u50c5\u80fd\u5920\u5e6b\u52a9\u5b78\u751f\u7406\u89e3\u6578\u64da\u5eab\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u9084\u80fd\u63d0\u9ad8\u4ed6\u5011\u7684\u5be6\u8e10\u80fd\u529b\u3002<\/p>\n<h3 id=\"%e5%9c%a8%e7%b7%9a%e4%bd%9c%e6%a5%ad%e7%9a%84%e8%a8%ad%e8%a8%88-yxeumQQMCX\">\u5728\u7dda\u4f5c\u696d\u7684\u8a2d\u8a08<\/h3>\n<p>\u8a2d\u8a08\u4e00\u500b\u6709\u6548\u7684\u5728\u7dda\u4f5c\u696d\u9700\u8981\u8003\u616e\u591a\u500b\u56e0\u7d20\uff0c\u5305\u62ec\u4f5c\u696d\u7684\u76ee\u6a19\u3001\u96e3\u5ea6\u548c\u8a55\u4f30\u6a19\u6e96\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u8a2d\u8a08\u5728\u7dda\u4f5c\u696d\u7684\u5efa\u8b70\uff1a<\/p>\n<ul>\n<li><strong>\u660e\u78ba\u7684\u5b78\u7fd2\u76ee\u6a19\uff1a<\/strong>\u78ba\u4fdd\u5b78\u751f\u4e86\u89e3\u4f5c\u696d\u7684\u76ee\u7684\u548c\u671f\u671b\u7d50\u679c\u3002<\/li>\n<li><strong>\u5be6\u8e10\u6027\uff1a<\/strong>\u8a2d\u8a08\u80fd\u5920\u8b93\u5b78\u751f\u52d5\u624b\u64cd\u4f5c\u7684\u4f5c\u696d\uff0c\u4f8b\u5982\u7de8\u5bebSQL\u67e5\u8a62\u6216\u8a2d\u8a08\u6578\u64da\u5eab\u67b6\u69cb\u3002<\/li>\n<li><strong>\u5373\u6642\u53cd\u994b\uff1a<\/strong>\u63d0\u4f9b\u81ea\u52d5\u8a55\u5206\u7cfb\u7d71\uff0c\u8b93\u5b78\u751f\u80fd\u5920\u53ca\u6642\u7372\u5f97\u53cd\u994b\uff0c\u5f9e\u800c\u6539\u9032\u4ed6\u5011\u7684\u5b78\u7fd2\u3002<\/li>\n<\/ul>\n<h3 id=\"%e6%8a%80%e8%a1%93%e6%94%af%e6%8c%81-yxeumQQMCX\">\u6280\u8853\u652f\u6301<\/h3>\n<p>\u5728\u9032\u884c\u5728\u7dda\u4f5c\u696d\u6642\uff0c\u9078\u64c7\u5408\u9069\u7684\u6280\u8853\u5e73\u53f0\u81f3\u95dc\u91cd\u8981\u3002\u8a31\u591a\u6559\u80b2\u6a5f\u69cb\u9078\u64c7\u4f7f\u7528\u958b\u6e90\u7684\u5b78\u7fd2\u7ba1\u7406\u7cfb\u7d71\uff08LMS\uff09\uff0c\u5982Moodle\u6216Canvas\uff0c\u9019\u4e9b\u7cfb\u7d71\u63d0\u4f9b\u4e86\u8c50\u5bcc\u7684\u529f\u80fd\u4f86\u652f\u6301\u5728\u7dda\u5b78\u7fd2\u548c\u4f5c\u696d\u63d0\u4ea4\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-yxeumQQMCX\">\u7d50\u8ad6<\/h2>\n<p>\u6578\u64da\u5eab\u539f\u7406\u7684\u5728\u7dda\u4f5c\u696d\u4e0d\u50c5\u80fd\u5920\u5e6b\u52a9\u5b78\u751f\u638c\u63e1\u7406\u8ad6\u77e5\u8b58\uff0c\u9084\u80fd\u63d0\u9ad8\u4ed6\u5011\u7684\u5be6\u8e10\u80fd\u529b\u3002\u96a8\u8457\u6280\u8853\u7684\u9032\u6b65\uff0c\u8d8a\u4f86\u8d8a\u591a\u7684\u6559\u80b2\u6a5f\u69cb\u5c07\u5728\u7dda\u4f5c\u696d\u7d0d\u5165\u8ab2\u7a0b\u4e2d\uff0c\u4ee5\u9069\u61c9\u73fe\u4ee3\u5b78\u7fd2\u7684\u9700\u6c42\u3002\u5c0d\u65bc\u5e0c\u671b\u6df1\u5165\u4e86\u89e3\u6578\u64da\u5eab\u6280\u8853\u7684\u5b78\u751f\u548c\u5c08\u696d\u4eba\u58eb\u4f86\u8aaa\uff0c\u638c\u63e1\u9019\u4e9b\u57fa\u672c\u539f\u7406\u5c07\u70ba\u4ed6\u5011\u7684\u8077\u696d\u751f\u6daf\u6253\u4e0b\u5805\u5be6\u7684\u57fa\u790e\u3002<\/p>\n<p>\u5982\u679c\u60a8\u5c0d\u65bc\u6578\u64da\u5eab\u7684\u61c9\u7528\u6709\u8208\u8da3\uff0c\u4e26\u5e0c\u671b\u5728\u9999\u6e2f\u5c0b\u627e\u5408\u9069\u7684\u89e3\u6c7a\u65b9\u6848\uff0c\u60a8\u53ef\u4ee5\u8003\u616e\u6211\u5011\u7684<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u670d\u52d9\uff0c\u9019\u5c07\u70ba\u60a8\u7684\u6578\u64da\u5eab\u7ba1\u7406\u63d0\u4f9b\u7a69\u5b9a\u7684\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22\u6578\u64da\u5eab\u539f\u7406\u7684\u57fa\u790e\u77e5\u8b58\uff0c\u901a\u904e\u5728\u7dda\u4f5c\u696d\u6df1\u5165\u6dfa\u51fa\u5730\u7406\u89e3\u6578\u64da\u5eab\u7684\u6838\u5fc3\u6982\u5ff5\u8207\u61c9\u7528\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-181376","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/181376","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=181376"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/181376\/revisions"}],"predecessor-version":[{"id":181377,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/181376\/revisions\/181377"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=181376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=181376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=181376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}