{"id":161,"date":"2021-09-25T16:39:04","date_gmt":"2021-09-25T08:39:04","guid":{"rendered":"http:\/\/www.dataisfun.cn\/?p=161"},"modified":"2021-12-13T15:24:13","modified_gmt":"2021-12-13T07:24:13","slug":"presto-sql-%e4%bc%98%e5%8c%96%e5%b0%8f%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"https:\/\/www.dataisfun.cn\/?p=161","title":{"rendered":"Presto SQL-\u4f18\u5316\u5c0f\u6280\u5de7"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\" style=\"font-size:12px\">\u672c\u6587\u603b\u7ed3\u4e00\u4e0bPresto SQL\u7684\u4f18\u5316\u5c0f\u6280\u5de7\uff0c\u7b80\u5316\u4ee3\u7801\u6216\u8005\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002<\/p>\n\n\n\n<h3 class=\"has-vivid-cyan-blue-color has-text-color wp-block-heading\" style=\"font-size:14px\">1. \u4f7f\u7528with\u8bed\u53e5\u51cf\u5c11\u5d4c\u5957\u5b50\u67e5\u8be2\u548c\u4e2d\u95f4\u8868<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:12px\">\u5728\u505a\u5173\u8054\u5224\u65ad\u6216\u8005\u6253\u6807\u7b7e\u7684\u65f6\u5019\uff0c\u9700\u8981\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u4e2d\u95f4\u8868\uff0c\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u4f7f\u7528with\u8bed\u53e5\u907f\u514d\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u8fc7\u591a\u7684\u8fc7\u7a0b\u8868\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">with \n    t1 as (\n        select\n            cust_id\n        from loan\n        where apply_date &lt; current_date and apply_date >= current_date - interval '30' day\n        group by 1\n    )\nselect\n    t2.cust_id,\n    case when t1.cust_id is not null then 1 else 0 end as is_apply_30d\nfrom detail as t2\nleft join t1\non t2.cust_id = t1.cust_id;<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">with\n    a as (select cust_id from table1 where ...),\n    b as (select cust_id from table2 where ...)\nselect\n    ...\nfrom table3 as t\nleft join a\non t.cust_id = a.cust_id\nleft join b\non t.cust_id = b.cust_id;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"has-vivid-cyan-blue-color has-text-color wp-block-heading\" style=\"font-size:14px\">2. \u63d0\u9ad8row_number() over ()\u7684\u6267\u884c\u6548\u7387<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:12px\">\u5076\u5c14\u53ef\u80fd\u4f1a\u78b0\u5230row_number() over ()\u6267\u884c\u5f88\u6162\u751a\u81f3\u5185\u5b58\u6ea2\u51fa\u62a5\u9519\u7684\u60c5\u51b5\uff0c\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u52a0\u4e0awhere\u6761\u4ef6 <strong>or rand() &lt; 0<\/strong> \u4ee5\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002Presto\u9ed8\u8ba4\u4f7f\u7528\u7684\u662fTopNRowNumberOperator\u6267\u884c\u5668\uff0c\u52a0\u4e0a <strong>or rand() &lt; 0<\/strong> \u80fd\u8bf1\u5bfcPresto\u4f7f\u7528Window\u6267\u884c\u5668\uff0c\u4ece\u800c\u5728\u4e0d\u5f71\u54cd\u7ed3\u679c\u7684\u540c\u65f6\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">select\n    cust_id,\n    order_no,\n    order_type,\n    order_date,\n    order_time\nfrom \n    (\n    select\n        cust_id,\n        order_no,\n        order_type,\n        order_date,\n        order_time,\n        row_number() over (partition by cust_id, order_date order by order_time) as row_n\n    from order_detail\n    ) as t\nwhere t.row_n= 1 or rand() &lt; 0;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"has-vivid-cyan-blue-color has-text-color wp-block-heading\" style=\"font-size:14px\">3. \u51cf\u5c11\u7c7b\u578b\u8f6c\u6362<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--\u5047\u8bbeorder_detail\u8868\u4e2d\u7684order_date\u7c7b\u578b\u4e3a\u5b57\u7b26, \u5b58\u50a8\u683c\u5f0f\u4e3ayyyy-mm-dd, \u7b2c1\u79cd\u5199\u6cd5\u8981\u4f18\u4e8e\u7b2c2\u79cd\u5199\u6cd5\n\n--\u7b2c1\u79cd\u5199\u6cd5\nselect\n    order_no,\n    order_date\nfrom order_detail\nwhere order_date >= '2021-09-01'\n\n--\u7b2c2\u79cd\u5199\u6cd5\nselect\n    order_no,\n    order_date\nfrom order_detail\nwhere date(order_date) >= date'2021-09-01'  --\u5b57\u6bb5order_date\u6bcf\u4e00\u4e2a\u503c\u90fd\u8981\u505a\u4e00\u6b21date()\u8f6c\u6362<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"has-vivid-cyan-blue-color has-text-color wp-block-heading\" style=\"font-size:14px\">4. \u4f7f\u7528join\u8bed\u53e5\u4ee3\u66ffwhere in\u548c\u5b50\u67e5\u8be2<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:12px\">\u5f53 <strong>where in ()<\/strong> \u6216 <strong>where not in ()<\/strong> \u6240\u7528\u5230\u7684\u8868\u6216\u6240\u4ea7\u751f\u7684\u7ed3\u679c\u6570\u636e\u91cf\u8f83\u5927\u65f6\uff0c\u8bed\u53e5\u6267\u884c\u6548\u7387\u5c31\u4f1a\u660e\u663e\u4e0b\u964d\uff0c\u53ef\u4ee5\u8003\u8651\u6539\u5199\u4e3a <strong>join<\/strong> \u8bed\u53e5\uff0c\u540c\u65f6\u8fd8\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u524d\u6587\u8bf4\u7684 <strong>with<\/strong> \u8bed\u53e5\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--where in\nselect\n    ...\nfrom table1\nwhere cust_id in (select cust_id from table2);\n\n--\u53ef\u6539\u5199\u4e3a\uff1a\nselect\n    ...\nfrom table1 as t1\ninner join table2 as t2\non t1.cust_id = t2.cust_id;\n\n\n--where not in\nselect\n    ...\nfrom table1\nwhere cust_id not in (select cust_id from table2 where type = 'xxx');\n\n--\u53ef\u6539\u5199\u4e3a\uff1a\nselect\n    ...\nfrom table1 as t1\nleft join table2 as t2\non t1.cust_id = t2.cust_id and t2.type = 'xxx'\nwhere t2.cust_id is null;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:12px\"><br> <span class=\"sme-text-color has-cyan-bluish-gray-color\">\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u8f6c\u8f7d\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u5e76\u7559\u4e0b\u539f\u6587\u94fe\u63a5\u3002<\/span> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u603b\u7ed3\u4e00\u4e0bPresto SQL\u7684\u4f18\u5316\u5c0f\u6280\u5de7\uff0c\u7b80\u5316\u4ee3\u7801\u6216\u8005\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002 1. \u4f7f\u7528with\u8bed\u53e5\u51cf\u5c11&hellip; <a href=\"https:\/\/www.dataisfun.cn\/?p=161\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">Presto SQL-\u4f18\u5316\u5c0f\u6280\u5de7<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[9,6],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-sql","tag-presto","tag-sql","h-entry","h-as-article"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Presto SQL \u4f18\u5316 | Presto SQL \u4f18\u5316\u6280\u5de7 | Presto SQL \u4f18\u5316\u603b\u7ed3 - \u6570\u636e\u597d\u73a9<\/title>\n<meta name=\"description\" content=\"\u672c\u6587\u603b\u7ed3\u4e00\u4e0bPresto SQL\u4f18\u5316\u6280\u5de7\uff0c\u7b80\u5316\u4ee3\u7801\u6216\u8005\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002\u5728\u505a\u5173\u8054\u5224\u65ad\u6216\u8005\u6253\u6807\u7b7e\u7684\u65f6\u5019\uff0c\u9700\u8981\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u4e2d\u95f4\u8868\uff0c\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u4f7f\u7528with\u8bed\u53e5\u907f\u514d\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u8fc7\u591a\u7684\u8fc7\u7a0b\u8868\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dataisfun.cn\/?p=161\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Presto SQL \u4f18\u5316 | Presto SQL \u4f18\u5316\u6280\u5de7 | Presto SQL \u4f18\u5316\u603b\u7ed3 - \u6570\u636e\u597d\u73a9\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u603b\u7ed3\u4e00\u4e0bPresto SQL\u4f18\u5316\u6280\u5de7\uff0c\u7b80\u5316\u4ee3\u7801\u6216\u8005\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002\u5728\u505a\u5173\u8054\u5224\u65ad\u6216\u8005\u6253\u6807\u7b7e\u7684\u65f6\u5019\uff0c\u9700\u8981\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u4e2d\u95f4\u8868\uff0c\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u4f7f\u7528with\u8bed\u53e5\u907f\u514d\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u8fc7\u591a\u7684\u8fc7\u7a0b\u8868\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dataisfun.cn\/?p=161\" \/>\n<meta property=\"og:site_name\" content=\"\u6570\u636e\u597d\u73a9\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-25T08:39:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-13T07:24:13+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dataisfun.cn\/?p=161\",\"url\":\"https:\/\/www.dataisfun.cn\/?p=161\",\"name\":\"Presto SQL \u4f18\u5316 | Presto SQL \u4f18\u5316\u6280\u5de7 | Presto SQL \u4f18\u5316\u603b\u7ed3 - \u6570\u636e\u597d\u73a9\",\"isPartOf\":{\"@id\":\"https:\/\/www.dataisfun.cn\/#website\"},\"datePublished\":\"2021-09-25T08:39:04+00:00\",\"dateModified\":\"2021-12-13T07:24:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.dataisfun.cn\/#\/schema\/person\/026bc03694bbf1608ccc639fb31c3293\"},\"description\":\"\u672c\u6587\u603b\u7ed3\u4e00\u4e0bPresto SQL\u4f18\u5316\u6280\u5de7\uff0c\u7b80\u5316\u4ee3\u7801\u6216\u8005\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002\u5728\u505a\u5173\u8054\u5224\u65ad\u6216\u8005\u6253\u6807\u7b7e\u7684\u65f6\u5019\uff0c\u9700\u8981\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u4e2d\u95f4\u8868\uff0c\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u4f7f\u7528with\u8bed\u53e5\u907f\u514d\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u8fc7\u591a\u7684\u8fc7\u7a0b\u8868\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dataisfun.cn\/?p=161#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dataisfun.cn\/?p=161\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dataisfun.cn\/?p=161#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.dataisfun.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Presto SQL-\u4f18\u5316\u5c0f\u6280\u5de7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dataisfun.cn\/#website\",\"url\":\"https:\/\/www.dataisfun.cn\/\",\"name\":\"\u6570\u636e\u597d\u73a9\",\"description\":\"\u6570\u4e2d\u81ea\u6709\u4e7e\u5764\uff0c\u4e8e\u4e50\u8da3\u4e2d\u53d1\u73b0\u4ef7\u503c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dataisfun.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dataisfun.cn\/#\/schema\/person\/026bc03694bbf1608ccc639fb31c3293\",\"name\":\"admin\",\"sameAs\":[\"http:\/\/www.dataisfun.cn\"],\"url\":\"https:\/\/www.dataisfun.cn\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Presto SQL \u4f18\u5316 | Presto SQL \u4f18\u5316\u6280\u5de7 | Presto SQL \u4f18\u5316\u603b\u7ed3 - \u6570\u636e\u597d\u73a9","description":"\u672c\u6587\u603b\u7ed3\u4e00\u4e0bPresto SQL\u4f18\u5316\u6280\u5de7\uff0c\u7b80\u5316\u4ee3\u7801\u6216\u8005\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002\u5728\u505a\u5173\u8054\u5224\u65ad\u6216\u8005\u6253\u6807\u7b7e\u7684\u65f6\u5019\uff0c\u9700\u8981\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u4e2d\u95f4\u8868\uff0c\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u4f7f\u7528with\u8bed\u53e5\u907f\u514d\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u8fc7\u591a\u7684\u8fc7\u7a0b\u8868\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dataisfun.cn\/?p=161","og_locale":"zh_CN","og_type":"article","og_title":"Presto SQL \u4f18\u5316 | Presto SQL \u4f18\u5316\u6280\u5de7 | Presto SQL \u4f18\u5316\u603b\u7ed3 - \u6570\u636e\u597d\u73a9","og_description":"\u672c\u6587\u603b\u7ed3\u4e00\u4e0bPresto SQL\u4f18\u5316\u6280\u5de7\uff0c\u7b80\u5316\u4ee3\u7801\u6216\u8005\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002\u5728\u505a\u5173\u8054\u5224\u65ad\u6216\u8005\u6253\u6807\u7b7e\u7684\u65f6\u5019\uff0c\u9700\u8981\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u4e2d\u95f4\u8868\uff0c\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u4f7f\u7528with\u8bed\u53e5\u907f\u514d\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u8fc7\u591a\u7684\u8fc7\u7a0b\u8868\u3002","og_url":"https:\/\/www.dataisfun.cn\/?p=161","og_site_name":"\u6570\u636e\u597d\u73a9","article_published_time":"2021-09-25T08:39:04+00:00","article_modified_time":"2021-12-13T07:24:13+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.dataisfun.cn\/?p=161","url":"https:\/\/www.dataisfun.cn\/?p=161","name":"Presto SQL \u4f18\u5316 | Presto SQL \u4f18\u5316\u6280\u5de7 | Presto SQL \u4f18\u5316\u603b\u7ed3 - \u6570\u636e\u597d\u73a9","isPartOf":{"@id":"https:\/\/www.dataisfun.cn\/#website"},"datePublished":"2021-09-25T08:39:04+00:00","dateModified":"2021-12-13T07:24:13+00:00","author":{"@id":"https:\/\/www.dataisfun.cn\/#\/schema\/person\/026bc03694bbf1608ccc639fb31c3293"},"description":"\u672c\u6587\u603b\u7ed3\u4e00\u4e0bPresto SQL\u4f18\u5316\u6280\u5de7\uff0c\u7b80\u5316\u4ee3\u7801\u6216\u8005\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002\u5728\u505a\u5173\u8054\u5224\u65ad\u6216\u8005\u6253\u6807\u7b7e\u7684\u65f6\u5019\uff0c\u9700\u8981\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u4e2d\u95f4\u8868\uff0c\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u4f7f\u7528with\u8bed\u53e5\u907f\u514d\u5d4c\u5957\u5b50\u67e5\u8be2\u6216\u8005\u521b\u5efa\u8fc7\u591a\u7684\u8fc7\u7a0b\u8868\u3002","breadcrumb":{"@id":"https:\/\/www.dataisfun.cn\/?p=161#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dataisfun.cn\/?p=161"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dataisfun.cn\/?p=161#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.dataisfun.cn\/"},{"@type":"ListItem","position":2,"name":"Presto SQL-\u4f18\u5316\u5c0f\u6280\u5de7"}]},{"@type":"WebSite","@id":"https:\/\/www.dataisfun.cn\/#website","url":"https:\/\/www.dataisfun.cn\/","name":"\u6570\u636e\u597d\u73a9","description":"\u6570\u4e2d\u81ea\u6709\u4e7e\u5764\uff0c\u4e8e\u4e50\u8da3\u4e2d\u53d1\u73b0\u4ef7\u503c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dataisfun.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.dataisfun.cn\/#\/schema\/person\/026bc03694bbf1608ccc639fb31c3293","name":"admin","sameAs":["http:\/\/www.dataisfun.cn"],"url":"https:\/\/www.dataisfun.cn\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":11,"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":768,"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/768"}],"wp:attachment":[{"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dataisfun.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}