{"id":102131,"date":"2024-04-15T11:57:11","date_gmt":"2024-04-15T03:57:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/102131.html"},"modified":"2024-04-15T11:57:13","modified_gmt":"2024-04-15T03:57:13","slug":"%e4%bb%80%e4%b9%88%e6%98%af%e5%9b%be%e5%bd%a2%e6%95%b0%e6%8d%ae%e5%ba%93-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/102131.html","title":{"rendered":"\u4ec0\u4e48\u662f\u56fe\u5f62\u6570\u636e\u5e93"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/02174412\/08bbf96a-82fb-4199-8c34-f8c312e13cde.webp\" alt=\"\u4ec0\u4e48\u662f\u56fe\u5f62\u6570\u636e\u5e93\" \/><\/p>\n<p><p>\u56fe\u5f62\u6570\u636e\u5e93\u662f\u4e00\u79cd\u975e\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0c\u4e13\u4e3a\u5904\u7406\u56fe\u5f62\u548c\u7f51\u7edc\u7ed3\u6784\u7684\u6570\u636e\u800c\u8bbe\u8ba1\u3002\u5b83\u4eec\u80fd\u591f\u9ad8\u6548\u5730\u5b58\u50a8\u3001\u7ba1\u7406\u548c\u67e5\u8be2\u9ad8\u5ea6\u8fde\u63a5\u7684\u6570\u636e\uff0c<strong>\u4e3b\u8981\u901a\u8fc7\u8282\u70b9\u3001\u8fb9\u548c\u5c5e\u6027<\/strong> \u6765\u8868\u793a\u548c\u5b58\u50a8\u6570\u636e\u3002\u4e4b\u6240\u4ee5\u5b83\u4eec\u5728\u67d0\u4e9b\u5e94\u7528\u573a\u666f\u4e2d\u7279\u522b\u53d7\u6b22\u8fce\uff0c\u662f\u56e0\u4e3a<strong>\u56fe\u5f62\u6570\u636e\u5e93\u4f18\u5316\u4e86\u5173\u7cfb\u91cd\u5bc6\u7684\u6570\u636e\u64cd\u4f5c<\/strong>\uff0c\u5982\u793e\u4ea4\u7f51\u7edc\u5206\u6790\u3001\u7f51\u7edc\u62d3\u6251\u3001\u63a8\u8350\u7cfb\u7edf\u7b49\uff0c\u5176\u4e2d\u6570\u636e\u5143\u7d20\u4e4b\u95f4\u7684\u5173\u7cfb\u540c\u6570\u636e\u672c\u8eab\u4e00\u6837\u91cd\u8981\u3002\u76f8\u8f83\u4e8e\u4f20\u7edf\u6570\u636e\u5e93\uff0c\u56fe\u5f62\u6570\u636e\u5e93\u5728\u5904\u7406\u590d\u6742\u5173\u7cfb\u65f6\u66f4\u4e3a\u9ad8\u6548\uff0c\u8fd9\u4e3b\u8981\u5f97\u76ca\u4e8e\u5176\u5185\u90e8\u7ed3\u6784\u548c\u67e5\u8be2\u8bed\u8a00\u8bbe\u8ba1\uff0c\u5982\u7528\u56fe\u67e5\u8be2\u8bed\u8a00\uff08Gremlin\u3001Cypher\u7b49\uff09\u53ef\u4ee5\u8f7b\u677e\u5904\u7406\u590d\u6742\u7684\u7f51\u7edc\u7ed3\u6784\u67e5\u8be2\u3002<\/p>\n<\/p>\n<p><h3><strong>\u4e00\u3001\u8282\u70b9\u3001\u8fb9\u548c\u5c5e\u6027<\/strong><\/h3>\n<\/p>\n<p><p>\u8282\u70b9\u4ee3\u8868\u5b9e\u4f53\uff0c\u8fb9\u4ee3\u8868\u5b9e\u4f53\u95f4\u7684\u5173\u7cfb\uff0c\u5c5e\u6027\u5219\u7ed9\u5b9e\u4f53\u548c\u5173\u7cfb\u63d0\u4f9b\u7ec6\u8282\u3002\u8282\u70b9\u548c\u8fb9\u5747\u53ef\u5e26\u6709\u5c5e\u6027\u3002\u8fd9\u79cd\u7ed3\u6784\u975e\u5e38\u9002\u5408\u8868\u8fbe\u81ea\u7136\u4e16\u754c\u4e2d\u7684\u4f17\u591a\u7c7b\u578b\u6570\u636e\uff0c\u5c24\u5176\u662f\u90a3\u4e9b\u5173\u7cfb\u5bc6\u96c6\u578b\u7684\u6570\u636e\uff0c\u5982\u793e\u4ea4\u7f51\u7edc\u4e2d\u7684\u7528\u6237\u5173\u7cfb\u6216\u56e0\u7279\u7f51\u7684\u94fe\u63a5\u7ed3\u6784\u3002\u5728\u56fe\u5f62\u6570\u636e\u5e93\u4e2d\uff0c\u901a\u8fc7\u5c5e\u6027\u53ef\u5bf9\u8282\u70b9\u548c\u8fb9\u8fdb\u884c\u4e30\u5bcc\u7684\u63cf\u8ff0\uff0c\u589e\u5f3a\u6570\u636e\u7684\u8868\u73b0\u529b\u548c\u67e5\u8be2\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><h3><strong>\u4e8c\u3001\u56fe\u5f62\u6570\u636e\u5e93\u7684\u4f18\u70b9<\/strong><\/h3>\n<\/p>\n<p><p><strong>\u56fe\u5f62\u6570\u636e\u5e93\u5904\u7406\u9ad8\u5ea6\u8fde\u63a5\u6570\u636e\u7684\u80fd\u529b<\/strong>\u8d85\u8d8a\u4f20\u7edf\u6570\u636e\u5e93\uff0c\u8fd9\u4e00\u7279\u70b9\u5c24\u5176\u5728\u6570\u636e\u5173\u7cfb\u91cd\u8981\u7684\u573a\u666f\u4e0b\u663e\u5f97\u7a81\u51fa\u3002\u4f8b\u5982\uff0c\u5728\u793e\u4ea4\u7f51\u7edc\u5206\u6790\u4e2d\uff0c\u5173\u952e\u4e0d\u4ec5\u5728\u4e8e\u4e2a\u4f53\uff08\u4f8b\u5982\u7528\u6237\uff09\uff0c\u8fd8\u5728\u4e8e\u4e2a\u4f53\u4e4b\u95f4\u7684\u5173\u7cfb\u5982\u4f55\u3002\u56fe\u5f62\u6570\u636e\u5e93\u53ef\u4ee5\u9ad8\u6548\u67e5\u8be2\u8fd9\u4e9b\u590d\u6742\u7684\u5173\u7cfb\uff0c\u5305\u62ec\u670b\u53cb\u7684\u670b\u53cb\uff08FoF\u67e5\u8be2\uff09\u3001\u5171\u540c\u5174\u8da3\u3001\u63a8\u8350\u7cfb\u7edf\u7b49\u3002\u6b64\u5916\uff0c\u56fe\u5f62\u6570\u636e\u5e93\u7684\u7075\u6d3b\u6027\u4e5f\u4f53\u73b0\u5728\u5176schema-less\uff08\u65e0\u6a21\u5f0f\uff09\u7684\u7279\u6027\u4e0a\uff0c\u5141\u8bb8\u7528\u6237\u5728\u4e0d\u4e2d\u65ad\u670d\u52a1\u7684\u60c5\u51b5\u4e0b\u6dfb\u52a0\u6216\u4fee\u6539\u8282\u70b9\u548c\u8fb9\u7684\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><h3><strong>\u4e09\u3001\u67e5\u8be2\u8bed\u8a00\uff08Gremlin\u3001Cypher\uff09<\/strong><\/h3>\n<\/p>\n<p><p>\u56fe\u5f62\u6570\u636e\u5e93\u4f7f\u7528\u4e13\u95e8\u7684\u67e5\u8be2\u8bed\u8a00\uff0c\u5982<strong>Gremlin\u548cCypher<\/strong>\uff0c\u4e13\u4e3a\u56fe\u5f62\u548c\u7f51\u7edc\u7ed3\u6784\u6570\u636e\u67e5\u8be2\u800c\u8bbe\u8ba1\u3002\u8fd9\u4e9b\u8bed\u8a00\u80fd\u591f\u76f4\u89c2\u5730\u8868\u8fbe\u590d\u6742\u7684\u56fe\u5f62\u7ed3\u6784\u67e5\u8be2\u548c\u56fe\u7b97\u6cd5\uff0c\u6709\u6548\u63d0\u9ad8\u6570\u636e\u67e5\u8be2\u7684\u6548\u7387\u4e0e\u51c6\u786e\u6027\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Cypher\u8bed\u8a00\u53ef\u4ee5\u8f7b\u677e\u7f16\u5199\u590d\u6742\u7684\u56fe\u5f62\u67e5\u8be2\uff0c\u5982\u5bfb\u627e\u6700\u77ed\u8def\u5f84\u3001\u6a21\u5f0f\u5339\u914d\u6216\u793e\u4ea4\u7f51\u7edc\u4e2d\u7684\u7279\u5b9a\u5173\u7cfb\u7f51\u7edc\u3002\u8fd9\u79cd\u4e13\u7528\u7684\u67e5\u8be2\u8bed\u8a00\u76f8\u8f83SQL\u7b49\u4f20\u7edf\u67e5\u8be2\u8bed\u8a00\u5728\u64cd\u4f5c\u56fe\u5f62\u6570\u636e\u65f6\u663e\u5f97\u66f4\u4e3a\u5f97\u5fc3\u5e94\u624b\u3002<\/p>\n<\/p>\n<p><h3><strong>\u56db\u3001\u5e94\u7528\u573a\u666f<\/strong><\/h3>\n<\/p>\n<p><p>\u56fe\u5f62\u6570\u636e\u5e93\u7684\u5e94\u7528\u573a\u666f\u591a\u79cd\u591a\u6837\uff0c\u4ece\u793e\u4ea4\u7f51\u7edc\u5206\u6790\u3001\u63a8\u8350\u7cfb\u7edf\u3001\u7f51\u7edc\u62d3\u6251\u5206\u6790\uff0c\u5230\u6b3a\u8bc8\u68c0\u6d4b\u3001\u77e5\u8bc6\u56fe\u8c31\u6784\u5efa\u7b49\uff0c\u51e0\u4e4e\u6d89\u53ca\u5230\u6240\u6709\u9700\u8981\u5904\u7406\u590d\u6742\u6570\u636e\u5173\u7cfb\u7684\u9886\u57df\u3002\u5728\u8fd9\u4e9b\u573a\u666f\u4e2d\uff0c\u6570\u636e\u4e0d\u4ec5\u6570\u91cf\u5e9e\u5927\u800c\u4e14\u9ad8\u5ea6\u8fde\u63a5\uff0c<strong>\u5229\u7528\u56fe\u5f62\u6570\u636e\u5e93\u7684\u9ad8\u6548\u8fde\u63a5\u67e5\u8be2\u7279\u6027<\/strong>\uff0c\u53ef\u4ee5\u5728\u590d\u6742\u7684\u6570\u636e\u5173\u7cfb\u4e2d\u5bfb\u627e\u5230\u91cd\u8981\u7684\u6d1e\u89c1\uff0c\u63a8\u52a8\u4e1a\u52a1\u6216\u7814\u7a76\u7684\u53d1\u5c55\u3002<\/p>\n<\/p>\n<p><h3><strong>\u4e94\u3001\u56fe\u5f62\u6570\u636e\u5e93\u4e0e\u4f20\u7edf\u6570\u636e\u5e93\u7684\u5bf9\u6bd4<\/strong><\/h3>\n<\/p>\n<p><p>\u76f8\u6bd4\u4e8e\u4f20\u7edf\u7684\u5173\u7cfb\u6570\u636e\u5e93\uff0c\u56fe\u5f62\u6570\u636e\u5e93\u5728\u4e00\u4e9b\u5173\u952e\u9886\u57df\u5c55\u73b0\u51fa\u5176\u72ec\u7279\u4f18\u52bf\u3002\u6700\u663e\u8457\u7684\u4e0d\u540c\u5728\u4e8e\u6570\u636e\u6a21\u578b\u7684\u8bbe\u8ba1\u3002\u5173\u7cfb\u6570\u636e\u5e93\u901a\u8fc7\u8868\u683c\u548c\u5916\u952e\u8fde\u63a5\u6765\u8868\u793a\u5b9e\u4f53\u95f4\u7684\u5173\u7cfb\uff0c\u5bf9\u4e8e\u7b80\u5355\u67e5\u8be2\u5df2\u7ecf\u8db3\u591f\u3002\u4f46\u968f\u7740\u5173\u7cfb\u7684\u590d\u6742\u5ea6\u589e\u52a0\uff0cSQL\u67e5\u8be2\u5feb\u901f\u53d8\u5f97\u590d\u6742\u5e76\u4e14\u6027\u80fd\u4e0b\u964d\u3002\u800c\u56fe\u5f62\u6570\u636e\u5e93\u4ee5\u56fe\u4e3a\u57fa\u7840\uff0c\u76f4\u63a5\u5c06\u6570\u636e\u4ee5\u56fe\u7684\u5f62\u5f0f\u5b58\u50a8\uff0c\u4f7f\u5f97\u590d\u6742\u5173\u7cfb\u7684\u67e5\u8be2\u66f4\u4e3a\u9ad8\u6548\u3002\u6b64\u5916\uff0c\u56fe\u5f62\u6570\u636e\u5e93\u7684\u67e5\u8be2\u8bed\u8a00\u5141\u8bb8\u63cf\u8ff0\u66f4\u4e3a\u590d\u6742\u7684\u5173\u7cfb\u548c\u56fe\u7b97\u6cd5\uff0c\u800c\u4e0d\u662f\u4ec5\u4ec5\u5173\u6ce8\u4e8e\u6570\u636e\u7684\u9009\u62e9\u548c\u6295\u5f71\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u4ec0\u4e48\u662f\u56fe\u5f62\u6570\u636e\u5e93\uff1f<\/strong><br \/>\n\u56fe\u5f62\u6570\u636e\u5e93\u662f\u4e00\u79cd\u4e13\u95e8\u7528\u4e8e\u5b58\u50a8\u548c\u7ba1\u7406\u56fe\u5f62\u6570\u636e\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u3002\u4e0e\u4f20\u7edf\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e0d\u540c\uff0c\u56fe\u5f62\u6570\u636e\u5e93\u4f7f\u7528\u56fe\u5f62\u7ed3\u6784\u6765\u8868\u793a\u6570\u636e\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u56fe\u5f62\u6570\u636e\u5e93\u9002\u7528\u4e8e\u5177\u6709\u590d\u6742\u5173\u7cfb\u548c\u8fde\u63a5\u7684\u6570\u636e\uff0c\u4f8b\u5982\u793e\u4ea4\u7f51\u7edc\u3001\u7f51\u7edc\u5173\u7cfb\u5206\u6790\u3001\u5730\u7406\u4fe1\u606f\u7cfb\u7edf\u7b49\u3002\u5b83\u901a\u8fc7\u56fe\u5f62\u7684\u8282\u70b9\u548c\u8fb9\u6765\u8868\u793a\u5b9e\u4f53\u548c\u5173\u7cfb\uff0c\u4ece\u800c\u66f4\u597d\u5730\u652f\u6301\u6570\u636e\u4e4b\u95f4\u7684\u5173\u8054\u548c\u67e5\u8be2\u3002<\/p>\n<p><strong>\u56fe\u5f62\u6570\u636e\u5e93\u6709\u54ea\u4e9b\u5e94\u7528\u573a\u666f\uff1f<\/strong><br \/>\n\u56fe\u5f62\u6570\u636e\u5e93\u5728\u8bb8\u591a\u9886\u57df\u90fd\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u4f8b\u5982\uff0c\u5728\u793e\u4ea4\u7f51\u7edc\u5206\u6790\u4e2d\uff0c\u56fe\u5f62\u6570\u636e\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5206\u6790\u793e\u4ea4\u5173\u7cfb\u3001\u63a8\u8350\u670b\u53cb\u3001\u53d1\u73b0\u793e\u533a\u7b49\uff1b\u5728\u7535\u4fe1\u9886\u57df\uff0c\u53ef\u4ee5\u5e94\u7528\u4e8e\u7f51\u7edc\u62d3\u6251\u5206\u6790\u548c\u6545\u969c\u6392\u67e5\uff1b\u5728\u533b\u7597\u9886\u57df\uff0c\u53ef\u4ee5\u7528\u4e8e\u75be\u75c5\u5173\u8054\u5206\u6790\u548c\u57fa\u56e0\u7ec4\u6570\u636e\u7ba1\u7406\uff1b\u5728\u91d1\u878d\u9886\u57df\uff0c\u53ef\u4ee5\u7528\u4e8e\u6b3a\u8bc8\u68c0\u6d4b\u548c\u4ea4\u6613\u5173\u7cfb\u5206\u6790\u7b49\u3002\u603b\u4e4b\uff0c\u4efb\u4f55\u9700\u8981\u5904\u7406\u590d\u6742\u5173\u7cfb\u548c\u8fde\u63a5\u7684\u6570\u636e\uff0c\u90fd\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u56fe\u5f62\u6570\u636e\u5e93\u6765\u4f18\u5316\u6570\u636e\u7684\u5b58\u50a8\u548c\u67e5\u8be2\u6027\u80fd\u3002<\/p>\n<p><strong>\u56fe\u5f62\u6570\u636e\u5e93\u4e0e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u6709\u4f55\u533a\u522b\uff1f<\/strong><br \/>\n\u56fe\u5f62\u6570\u636e\u5e93\u548c\u5173\u7cfb\u578b\u6570\u636e\u5e93\u5728\u6570\u636e\u5efa\u6a21\u548c\u67e5\u8be2\u65b9\u5f0f\u4e0a\u5b58\u5728\u4e00\u4e9b\u91cd\u8981\u7684\u533a\u522b\u3002\u5728\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\uff0c\u6570\u636e\u4ee5\u8868\u683c\u5f62\u5f0f\u5b58\u50a8\uff0c\u4f7f\u7528\u4e3b\u952e\u548c\u5916\u952e\u6765\u5efa\u7acb\u8868\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u800c\u56fe\u5f62\u6570\u636e\u5e93\u4e2d\uff0c\u6570\u636e\u4ee5\u8282\u70b9\u548c\u8fb9\u7684\u5f62\u5f0f\u5b58\u50a8\uff0c\u8282\u70b9\u4ee3\u8868\u5b9e\u4f53\uff0c\u8fb9\u4ee3\u8868\u5b9e\u4f53\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u67e5\u8be2\u65b9\u9762\uff0c\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4f7f\u7528SQL\u8bed\u53e5\u6765\u67e5\u8be2\u6570\u636e\uff0c\u800c\u56fe\u5f62\u6570\u636e\u5e93\u4f7f\u7528\u56fe\u5f62\u67e5\u8be2\u8bed\u8a00\uff08\u5982Cypher\uff09\u6765\u67e5\u8be2\u8282\u70b9\u548c\u8fb9\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u56fe\u5f62\u6570\u636e\u5e93\u66f4\u9002\u5408\u5904\u7406\u5173\u7cfb\u590d\u6742\u7684\u6570\u636e\uff0c\u5e76\u4e14\u53ef\u4ee5\u66f4\u5feb\u901f\u5730\u6267\u884c\u67d0\u4e9b\u7c7b\u578b\u7684\u67e5\u8be2\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u56fe\u5f62\u6570\u636e\u5e93\u662f\u4e00\u79cd\u975e\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0c\u4e13\u4e3a\u5904\u7406\u56fe\u5f62\u548c\u7f51\u7edc\u7ed3\u6784\u7684\u6570\u636e\u800c\u8bbe\u8ba1\u3002\u5b83\u4eec\u80fd\u591f\u9ad8\u6548\u5730\u5b58\u50a8\u3001\u7ba1\u7406\u548c\u67e5\u8be2\u9ad8\u5ea6\u8fde\u63a5\u7684\u6570 [&hellip;]","protected":false},"author":3,"featured_media":102138,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/102131"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=102131"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/102131\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/102138"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=102131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=102131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=102131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}