{"id":438336,"date":"2021-04-14T00:57:50","date_gmt":"2021-04-13T16:57:50","guid":{"rendered":"http:\/\/4563.org\/?p=438336"},"modified":"2021-04-14T00:57:50","modified_gmt":"2021-04-13T16:57:50","slug":"clickhouse-%e6%95%b0%e6%8d%ae%e5%af%bc%e5%85%a5%e6%97%b6%e5%80%99%ef%bc%8c%e8%a1%a8%e7%bb%93%e6%9e%84%e6%af%94%e9%9c%80%e8%a6%81%e5%80%92%e5%85%a5%e7%9a%84%e6%96%87%e4%bb%b6%e5%a4%9a%e5%87%a0%e4%b8%aa","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=438336","title":{"rendered":"clickhouse \u6570\u636e\u5bfc\u5165\u65f6\u5019\uff0c\u8868\u7ed3\u6784\u6bd4\u9700\u8981\u5012\u5165\u7684\u6587\u4ef6\u591a\u51e0\u4e2a\u5b57\u6bb5\uff0c\u600e\u4e48\u5904\u7406\u6700\u7b80\u6d01\u5462"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  clickhouse \u6570\u636e\u5bfc\u5165\u65f6\u5019\uff0c\u8868\u7ed3\u6784\u6bd4\u9700\u8981\u5012\u5165\u7684\u6587\u4ef6\u591a\u51e0\u4e2a\u5b57\u6bb5\uff0c\u600e\u4e48\u5904\u7406\u6700\u7b80\u6d01\u5462               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sjmcefc2 <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        clickhouse-client &#8211;format_csv_delimiter=&#8221;|&#8221; &#8211;query=&#8221;INSERT INTO tutorial.bable FORMAT CSV&#8221; &lt;a_bable_input.txt<\/p>\n<p>tutorial.bable \u8868\u7ed3\u6784\u6bd4\u5012\u5165\u6587\u4ef6 a_bable_input.txt \u591a\u4e00\u4e2a a\uff0c\u4e5f\u5c31\u662f a \u5f00\u5934\u7684\u6587\u4ef6\u5bfc\u5165<br \/>tutorial.bable \u8868\u7ed3\u6784 a<br \/> b<br \/> c<br \/> d<br \/> e<br \/>a_bable_input.txt \u6587\u4ef6\u7ed3\u6784 b<br \/> c<br \/> d<br \/> e      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5749953\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rqrq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5148\u8bd5\u8bd5\u770b INSERT INTO \u8868\u540d\u540e\u9762\u5b9a\u4e49\u5b57\u6bb5\u53ef\u4ee5\u4e0d\uff1f<br \/>\u5982\u679c\u4e0d\u884c\uff0c\u53ef\u4ee5\u628a FORMAT CSV \u6539\u6210 FORMAT CSVWithNames\uff0c\u5728 csv \u6587\u4ef6\u9996\u884c\u5b9a\u4e49\u6570\u636e\u5bf9\u5e94\u7684\u5b57\u6bb5\u540d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5749954\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sjmcefc2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             FORMAT CSVWithNames \u7684\u8bdd\u5904\u7406 csv \u5bfc\u5165\u6587\u4ef6<br \/>insert into \u8981\u5728\u540e\u9762\u8ddf\u7740\u8868\u5b57\u6bb5\uff0c\u6709\u6ca1\u6709\u529e\u6cd5\u4ece\u5efa\u8868 sql \u91cc\u9762\u81ea\u52a8\u52a0\u8f7d\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5749955\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : winnie2012 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5148\u628a txt \u5bfc\u5165\u5230 clickhouse \u7684\u4e34\u65f6\u8868\uff0c\u518d insert                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5749956\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sjmcefc2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @winnie2012 \u6709\u6ca1\u6709\u7b80\u5355\u7684\u529e\u6cd5\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5749957\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : winnie2012 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             clickhouse-client &#8211;host=127.0.0.1 &#8211;query=&#8221;insert into t_order_table01(lon,lat,datetime,geo_idx) format CSVWithNames&#8221; &lt; geo.csv<\/p>\n<p>\u8bd5\u4e0b\u8fd9\u4e2a\u5462<br \/>@sjmcefc2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>clickhouse \u6570\u636e\u5bfc\u5165\u65f6\u5019&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\/438336"}],"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=438336"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/438336\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=438336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=438336"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=438336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}