{"id":229761,"date":"2020-12-16T18:37:30","date_gmt":"2020-12-16T10:37:30","guid":{"rendered":"http:\/\/4563.org\/?p=229761"},"modified":"2020-12-16T18:37:30","modified_gmt":"2020-12-16T10:37:30","slug":"sql-%e8%af%b7%e9%97%ae%e8%bf%99%e7%a7%8d%e5%ad%97%e6%ae%b5%e8%b6%85%e5%a4%9a%e7%9a%84%e6%95%b0%e6%8d%ae%e8%a1%a8%e5%ba%94%e8%af%a5%e6%80%8e%e4%b9%88%e6%a3%80%e7%b4%a2%e5%85%a8%e9%83%a8%e5%ad%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=229761","title":{"rendered":"[SQL] \u8bf7\u95ee\u8fd9\u79cd\u5b57\u6bb5\u8d85\u591a\u7684\u6570\u636e\u8868\u5e94\u8be5\u600e\u4e48\u68c0\u7d22\u5168\u90e8\u5b57\u6bb5"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  [SQL] \u8bf7\u95ee\u8fd9\u79cd\u5b57\u6bb5\u8d85\u591a\u7684\u6570\u636e\u8868\u5e94\u8be5\u600e\u4e48\u68c0\u7d22\u5168\u90e8\u5b57\u6bb5               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 12tall <\/span>  <span><i><\/i> 16<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5c0f\u5f1f\u5bf9\u6570\u636e\u5e93\u4ec5\u7528\u8fc7\u7b80\u5355\u7684\u589e\u5220\u6539\u67e5\u3002\u6628\u5929\u540c\u4e8b\u63d0\u4e86\u4e2a\u60f3\u6cd5\uff0c\u6709\u70b9\u61f5\u903c\u3002\u6c42\u5404\u4f4d\u5927\u4f6c\u6307\u70b9\u8ff7\u6d25      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>14<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4529974\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l00t <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u77e5\u9053\u4f60\u5728\u8bf4\u4ec0\u4e48\u2026\u2026 \u4f60\u8fd9\u5217\u7684\u201c\u9700\u6c42\u201d\uff0c\u5b8c\u5168\u4e0d\u6e05\u6670\u3002\u50cf\u201c4.&#8221;, \u8fd9\u751a\u81f3\u4e0d\u662f\u9700\u6c42\u3002<\/p>\n<p>\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u5728\u6240\u6709\u5b57\u6bb5\u4e2d\u68c0\u7d22\uff1f\u8fd9\u662f\u4e2a\u600e\u6837\u7684\u573a\u666f\uff1f<\/p>\n<p>\u201c\u76f8\u5173\u6027\u6392\u5e8f\u201d\u53c8\u662f\u4e2a\u4ec0\u4e48\u4e1c\u897f\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529975\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ztxcccc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a\u641c\u7d22\u5f15\u64ce\uff0cApache Solr                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529976\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l00t <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8003\u8651\u90a3\u4e9b\u4e0d\u6e05\u695a\u7684\u5185\u5bb9\uff0c\u5355\u8bf4\u5b57\u6bb5\u53ef\u80fd\u7ecf\u5e38\u589e\u52a0\u8fd9\u70b9\uff0c\u4f7f\u7528\u4f20\u7edf\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7684\u8bdd\uff0c\u4e00\u822c\u53ef\u4ee5\u7528\u7eb5\u8868\u5f62\u5f0f\u3002\u5b57\u6bb5\u662f\u4e00\u6761\u8bb0\u5f55\uff0c\u800c\u4e0d\u662f\u771f\u7684\u8868\u5b57\u6bb5\u3002\u800c\u5efa\u7684\u8868\u53ef\u4ee5\u662f ID, \u5b57\u6bb5\u540d\uff0c\u5b57\u6bb5\u503c \u8fd9\u6837\u7684\u5f62\u5f0f\u3002<\/p>\n<p>\u4e0d\u8fc7\u5982\u679c\u7efc\u5408\u4f60\u522b\u7684\u9700\u6c42\u6765\u8003\u8651\u7684\u8bdd\uff0c\u90a3\u6574\u4e2a\u6a21\u578b\u5c31\u672a\u5fc5\u5408\u9002\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529977\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : 12tall <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @l00t \u975e\u5e38\u611f\u8c22<br \/>`4.` \u7684\u8bdd\u662f\u505a\u7f51\u9875\u7684\u65f6\u5019\u9047\u5230\u7684\u4e00\u4e2a\u6bd4\u8f83\u5934\u75bc\u7684\u95ee\u9898\uff0c\u8ddf SQL \u65e0\u5173 <\/p>\n<p>\u6211\u7406\u89e3\u7684\u68c0\u7d22\u662f\uff1a\u7528\u6237\u8f93\u5165\u4e00\u7ec4\u5173\u952e\u8bcd\uff0c\u53bb\u5339\u914d\u6570\u636e\u8868\u4e2d\u7684\u6240\u6709\u5b57\u6bb5\uff0c\u8fd4\u56de\u5305\u542b\u5168\u90e8\u6216\u51e0\u4e2a\u5173\u952e\u8bcd\u7684\u8bb0\u5f55\u884c <br \/>\u5982\u679c\u67d0\u4e00\u884c\u5305\u542b\u6240\u6709\u7528\u6237\u8f93\u5165\u7684\u5173\u952e\u8bcd\uff0c\u90a3\u4e48\u5b83\u5c31\u8981\u88ab\u4f18\u5148\u663e\u793a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529978\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : 12tall <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ztxcccc \u8c22\u8c22\uff0c\u53bb\u767e\u5ea6\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529979\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l00t <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @12tall #4 \u8fd9\u79cd\u68c0\u7d22\u65b9\u5f0f\u5c31\u4e0d\u8981\u7528 mysql \u4e86\uff0c\u7528 elastic search \u4e4b\u7c7b\u7684\u5427\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529980\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : 12tall <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @l00t \u54c7\uff0c\u975e\u5e38\u611f\u8c22\u5927\u4f6c\u7684\u63a8\u8350\u3002\u8c22\u8c22\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529981\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dfzj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ed9\u8fd9\u4e2a\u7ed3\u6784\u5316\u6570\u636e\u5e93\u5bf9\u5e94\u5efa\u7acb\u4e00\u5f20\u8d44\u6e90\u7d22\u5f15\u8868:<br \/>CEATE TABLE table1 (id<br \/>, content TEXT &#8212; \u628a\u6240\u6709\u5b57\u6bb5\u5185\u5bb9\u653e\u5165\u8be5\u5b57\u6bb5\u4e2d<br \/>, srcId &#8212; \u6e90\u8868 ID)<\/p>\n<p>\u7136\u540e\u754c\u9762\u4e0a\u7528\u6237\u8f93\u5165 \u5173\u952e\u8bcd\uff0c\u53bb\u67e5\u51fa table1.conent, \u5f97\u5230 srcId, \u6700\u7ec8\u627e\u5230\u76ee\u6807                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529982\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : 12tall <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dfzj \u8c22\u8c22\uff0c\u8bf7\u95ee\u8fd9\u4e2a\u548c\u89c6\u56fe\u3001\u6216\u8005\u4f20\u8bf4\u4e2d\u7684\u5012\u6392\u7d22\u5f15\u662f\u4e0d\u662f\u5f88\u50cf\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529983\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dfzj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @12tall \u6709\u70b9\u90a3\u79cd\u610f\u601d\uff0c\u4f46\u8fd8\u5dee\u7684\u8fdc\u3002\u5012\u6392\u7d22\u5f15\u8fd8\u5f97\u628a\u6240\u6709\u5b57\u6bb5\u5185\u5bb9\u5148\u505a\u5206\u8bcd\uff0c\u7136\u540e\u6309\u7167\u8bcd\u6765\u6392                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529984\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imn1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             2. google &#8220;SQL \u5168\u6587\u68c0\u7d22&#8221;<br \/>3. \u8003\u8651 NOSQL\uff0c\u6216\u8005 sql+json                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529985\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whx20202 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u7528\u4e00\u4e2a\u540c\u6b65\u5de5\u5177\uff08\u8ba2\u9605 binlog \u90a3\u79cd\uff09\u540c\u6b65\u5230 elastic search \u91cc\u3002<br \/>2. \u7528 es \u67e5\u8be2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529986\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shuax <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6539\u7528 es                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4529987\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wakzz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u4e2a\u9700\u6c42\u4e0d\u5efa\u8bae\u4f7f\u7528 mysql\uff0c\u5efa\u8bae\u5c06 mysql \u7684\u6570\u636e\u5b9e\u65f6\u540c\u6b65\u5230 es \u540e\uff0c\u901a\u8fc7 es \u6765\u67e5\u8be2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>[SQL] \u8bf7\u95ee\u8fd9\u79cd\u5b57\u6bb5\u8d85\u591a\u7684\u6570\u636e&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/229761"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=229761"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/229761\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=229761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=229761"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=229761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}