{"id":180938,"date":"2024-11-09T14:26:18","date_gmt":"2024-11-09T06:26:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/180938\/"},"modified":"2024-11-09T14:26:19","modified_gmt":"2024-11-09T06:26:19","slug":"%e6%b7%b1%e5%85%a5%e4%ba%86%e8%a7%a3%e4%b8%bb%e8%a6%81%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%8c%e6%8e%8c%e6%8f%a1%e6%95%b8%e6%93%9a%e7%ae%a1%e7%90%86%e6%96%b0%e6%8a%80%e8%83%bd-%e4%b8%bb%e8%a6%81","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/180938\/","title":{"rendered":"\u6df1\u5165\u4e86\u89e3\u4e3b\u8981\u6578\u64da\u5eab\uff0c\u638c\u63e1\u6578\u64da\u7ba1\u7406\u65b0\u6280\u80fd (\u4e3b\u8981 \u6578\u64da\u5eab)"},"content":{"rendered":"<h1 id=\"%e6%b7%b1%e5%85%a5%e4%ba%86%e8%a7%a3%e4%b8%bb%e8%a6%81%e6%95%b8%e6%93%9a%e5%ba%ab%ef%bc%8c%e6%8e%8c%e6%8f%a1%e6%95%b8%e6%93%9a%e7%ae%a1%e7%90%86%e6%96%b0%e6%8a%80%e8%83%bd-QiQYWBzCPL\">\u6df1\u5165\u4e86\u89e3\u4e3b\u8981\u6578\u64da\u5eab\uff0c\u638c\u63e1\u6578\u64da\u7ba1\u7406\u65b0\u6280\u80fd<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u7ba1\u7406\u548c\u4f7f\u7528\u8b8a\u5f97\u8d8a\u4f86\u8d8a\u91cd\u8981\u3002\u7121\u8ad6\u662f\u4f01\u696d\u9084\u662f\u500b\u4eba\uff0c\u638c\u63e1\u4e3b\u8981\u6578\u64da\u5eab\u7684\u77e5\u8b58\u90fd\u662f\u4e00\u9805\u5fc5\u5099\u6280\u80fd\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u5e7e\u7a2e\u4e3b\u8981\u7684\u6578\u64da\u5eab\u985e\u578b\uff0c\u4e26\u63d0\u4f9b\u4e00\u4e9b\u5be6\u7528\u7684\u6578\u64da\u7ba1\u7406\u6280\u5de7\u3002<\/p>\n<h2 id=\"%e4%b8%bb%e8%a6%81%e6%95%b8%e6%93%9a%e5%ba%ab%e9%a1%9e%e5%9e%8b-QiQYWBzCPL\">\u4e3b\u8981\u6578\u64da\u5eab\u985e\u578b<\/h2>\n<p>\u6578\u64da\u5eab\u53ef\u4ee5\u6839\u64da\u5176\u7d50\u69cb\u548c\u529f\u80fd\u5206\u70ba\u591a\u7a2e\u985e\u578b\u3002\u4ee5\u4e0b\u662f\u5e7e\u7a2e\u6700\u5e38\u898b\u7684\u6578\u64da\u5eab\u985e\u578b\uff1a<\/p>\n<ul>\n<li><strong>\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff08RDBMS\uff09<\/strong>: \u9019\u985e\u6578\u64da\u5eab\u4f7f\u7528\u8868\u683c\u4f86\u5b58\u5132\u6578\u64da\uff0c\u4e26\u901a\u904e\u95dc\u4fc2\u4f86\u9023\u63a5\u4e0d\u540c\u7684\u8868\u683c\u3002\u5e38\u898b\u7684\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u5305\u62ec MySQL\u3001PostgreSQL \u548c Oracle Database\u3002<\/li>\n<li><strong>\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff08NoSQL\uff09<\/strong>: \u9019\u985e\u6578\u64da\u5eab\u4e0d\u4f7f\u7528\u8868\u683c\u7d50\u69cb\uff0c\u9069\u5408\u8655\u7406\u5927\u898f\u6a21\u7684\u975e\u7d50\u69cb\u5316\u6578\u64da\u3002\u5e38\u898b\u7684 NoSQL \u6578\u64da\u5eab\u6709 MongoDB\u3001Cassandra \u548c Redis\u3002<\/li>\n<li><strong>\u5716\u5f62\u6578\u64da\u5eab<\/strong>: \u5c08\u9580\u7528\u65bc\u5b58\u5132\u548c\u67e5\u8a62\u5716\u5f62\u6578\u64da\u7684\u6578\u64da\u5eab\uff0c\u9069\u5408\u793e\u4ea4\u7db2\u7d61\u548c\u63a8\u85a6\u7cfb\u7d71\u7b49\u61c9\u7528\u3002Neo4j \u662f\u4e00\u500b\u6d41\u884c\u7684\u5716\u5f62\u6578\u64da\u5eab\u3002<\/li>\n<li><strong>\u6642\u5e8f\u6578\u64da\u5eab<\/strong>: \u5c08\u9580\u7528\u65bc\u8655\u7406\u6642\u9593\u5e8f\u5217\u6578\u64da\u7684\u6578\u64da\u5eab\uff0c\u9069\u5408 IoT \u548c\u91d1\u878d\u6578\u64da\u5206\u6790\u3002InfluxDB \u548c TimescaleDB \u662f\u5e38\u898b\u7684\u9078\u64c7\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c-QiQYWBzCPL\">\u6578\u64da\u5eab\u7684\u57fa\u672c\u64cd\u4f5c<\/h2>\n<p>\u7121\u8ad6\u4f7f\u7528\u54ea\u7a2e\u985e\u578b\u7684\u6578\u64da\u5eab\uff0c\u638c\u63e1\u57fa\u672c\u7684\u6578\u64da\u64cd\u4f5c\u90fd\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684\u6578\u64da\u5eab\u64cd\u4f5c\uff1a<\/p>\n<h3 id=\"1-%e5%89%b5%e5%bb%ba%e6%95%b8%e6%93%9a%e5%ba%ab%e5%92%8c%e8%a1%a8%e6%a0%bc-QiQYWBzCPL\">1. \u5275\u5efa\u6578\u64da\u5eab\u548c\u8868\u683c<\/h3>\n<pre><code>CREATE DATABASE my_database;\nUSE my_database;\n\nCREATE TABLE users (\n    id INT AUTO_INCREMENT PRIMARY KEY,\n    name VARCHAR(100),\n    email VARCHAR(100)\n);<\/code><\/pre>\n<h3 id=\"2-%e6%8f%92%e5%85%a5%e6%95%b8%e6%93%9a-QiQYWBzCPL\">2. \u63d2\u5165\u6578\u64da<\/h3>\n<pre><code>INSERT INTO users (name, email) VALUES ('Alice', 'alice@example.com');<\/code><\/pre>\n<h3 id=\"3-%e6%9f%a5%e8%a9%a2%e6%95%b8%e6%93%9a-QiQYWBzCPL\">3. \u67e5\u8a62\u6578\u64da<\/h3>\n<pre><code>SELECT * FROM users WHERE name = 'Alice';<\/code><\/pre>\n<h3 id=\"4-%e6%9b%b4%e6%96%b0%e6%95%b8%e6%93%9a-QiQYWBzCPL\">4. \u66f4\u65b0\u6578\u64da<\/h3>\n<pre><code>UPDATE users SET email = 'alice_new@example.com' WHERE name = 'Alice';<\/code><\/pre>\n<h3 id=\"5-%e5%88%aa%e9%99%a4%e6%95%b8%e6%93%9a-QiQYWBzCPL\">5. \u522a\u9664\u6578\u64da<\/h3>\n<pre><code>DELETE FROM users WHERE name = 'Alice';<\/code><\/pre>\n<h2 id=\"%e6%95%b8%e6%93%9a%e7%ae%a1%e7%90%86%e7%9a%84%e6%96%b0%e6%8a%80%e8%83%bd-QiQYWBzCPL\">\u6578\u64da\u7ba1\u7406\u7684\u65b0\u6280\u80fd<\/h2>\n<p>\u96a8\u8457\u6578\u64da\u91cf\u7684\u589e\u9577\uff0c\u6578\u64da\u7ba1\u7406\u7684\u6280\u80fd\u4e5f\u9700\u8981\u4e0d\u65b7\u66f4\u65b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u65b0\u8208\u7684\u6578\u64da\u7ba1\u7406\u6280\u80fd\uff1a<\/p>\n<ul>\n<li><strong>\u6578\u64da\u5efa\u6a21<\/strong>: \u7406\u89e3\u5982\u4f55\u8a2d\u8a08\u6578\u64da\u5eab\u7d50\u69cb\u4ee5\u6700\u4f73\u5316\u6578\u64da\u5b58\u5132\u548c\u67e5\u8a62\u6548\u7387\u3002<\/li>\n<li><strong>\u6578\u64da\u5b89\u5168\u6027<\/strong>: \u5b78\u7fd2\u5982\u4f55\u4fdd\u8b77\u6578\u64da\u5eab\u514d\u53d7\u672a\u7d93\u6388\u6b0a\u7684\u8a2a\u554f\u548c\u6578\u64da\u6d29\u9732\u3002<\/li>\n<li><strong>\u6027\u80fd\u512a\u5316<\/strong>: \u638c\u63e1\u5982\u4f55\u901a\u904e\u7d22\u5f15\u3001\u67e5\u8a62\u512a\u5316\u548c\u786c\u4ef6\u5347\u7d1a\u4f86\u63d0\u9ad8\u6578\u64da\u5eab\u6027\u80fd\u3002<\/li>\n<li><strong>\u96f2\u6578\u64da\u5eab\u7ba1\u7406<\/strong>: \u96a8\u8457\u96f2\u8a08\u7b97\u7684\u666e\u53ca\uff0c\u5b78\u7fd2\u5982\u4f55\u5728\u96f2\u74b0\u5883\u4e2d\u7ba1\u7406\u6578\u64da\u5eab\u6210\u70ba\u4e00\u9805\u91cd\u8981\u6280\u80fd\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-QiQYWBzCPL\">\u7d50\u8ad6<\/h2>\n<p>\u638c\u63e1\u4e3b\u8981\u6578\u64da\u5eab\u7684\u77e5\u8b58\u548c\u6280\u80fd\u5c0d\u65bc\u4efb\u4f55\u5e0c\u671b\u5728\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\u53d6\u5f97\u6210\u529f\u7684\u4eba\u4f86\u8aaa\u90fd\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002\u7121\u8ad6\u662f\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u9084\u662f\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff0c\u4e86\u89e3\u5176\u57fa\u672c\u64cd\u4f5c\u548c\u65b0\u8208\u6280\u80fd\u90fd\u80fd\u5e6b\u52a9\u60a8\u66f4\u6709\u6548\u5730\u7ba1\u7406\u6578\u64da\u3002\u96a8\u8457\u6280\u8853\u7684\u767c\u5c55\uff0c\u6301\u7e8c\u5b78\u7fd2\u548c\u9069\u61c9\u65b0\u7684\u6578\u64da\u7ba1\u7406\u6280\u8853\u5c07\u662f\u672a\u4f86\u7684\u8da8\u52e2\u3002<\/p>\n<p>\u5982\u679c\u60a8\u5c0d\u65bc <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u548c\u6578\u64da\u5eab\u7ba1\u7406\u6709\u8208\u8da3\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u89e3\u6c7a\u65b9\u6848\uff0c\u5e6b\u52a9\u60a8\u5728\u96f2\u74b0\u5883\u4e2d\u66f4\u597d\u5730\u7ba1\u7406\u6578\u64da\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6df1\u5165\u4e86\u89e3\u4e3b\u8981\u6578\u64da\u5eab\uff0c\u638c\u63e1\u6578\u64da\u7ba1\u7406\u65b0\u6280\u80fd\uff0c\u63d0\u5347\u60a8\u7684\u6578\u64da\u8655\u7406\u80fd\u529b\uff0c\u52a9\u529b\u8077\u696d\u767c\u5c55\u8207\u696d\u52d9\u6c7a\u7b56\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-180938","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/180938","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=180938"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/180938\/revisions"}],"predecessor-version":[{"id":180939,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/180938\/revisions\/180939"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=180938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=180938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=180938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}