{"id":93,"date":"2014-08-24T01:52:43","date_gmt":"2014-08-23T17:52:43","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=93"},"modified":"2014-08-24T01:52:43","modified_gmt":"2014-08-23T17:52:43","slug":"postgresql%e5%87%bd%e6%95%b0-%e5%8f%96%e6%8c%87%e5%ae%9a%e6%9c%88%e4%bb%bd%e7%9a%84%e8%b5%b7%e5%a7%8b%e4%b8%8e%e6%88%aa%e6%ad%a2%e6%97%a5%e6%9c%9f","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=93","title":{"rendered":"PostgreSQL\u51fd\u6570-\u53d6\u6307\u5b9a\u6708\u4efd\u7684\u8d77\u59cb\u4e0e\u622a\u6b62\u65e5\u671f"},"content":{"rendered":"<p style=\"color: #454545;\">\u53d6\u6708\u4efd\u7684\u8d77\u59cb\u65e5\u671f\u5f88\u5bb9\u6613\uff1a<\/p>\n<div style=\"color: #454545;\">\n<div class=\"syntaxhighlighter  sql\">\n<pre class=\"theme:vs2012 lang:pgsql decode:true \">date_trunc('month',\u8be5\u6708\u4e2d\u7684\u67d0\u4e00\u5929)<\/pre>\n<p>\u53d6\u6708\u4efd\u4e2d\u7684\u7ed3\u675f\u65e5\u671f\uff08\u5b9e\u9645\u4e0a\u662f\u4e0b\u4e2a\u6708\u76841\u53f70\u70b9\uff09<\/p>\n<\/div>\n<\/div>\n<div style=\"color: #454545;\">\n<div class=\"syntaxhighlighter  sql\">\n<pre class=\"theme:vs2012 lang:pgsql decode:true \">date_trunc('month',\u8be5\u6708\u4e2d\u7684\u67d0\u4e00\u5929)+'1month'::interval<\/pre>\n<p>\u5982\u679c\u4e0d\u60f3\u53d6\u4e0b\u4e2a\u67081\u53f7\u76840\u70b9\uff0c\u5c31\u518d\u51cf\u53bb1\u5929\u5c31\u597d\u4e86\u3002<\/p>\n<\/div>\n<\/div>\n<div style=\"color: #454545;\">\n<div class=\"syntaxhighlighter  sql\">\n<pre class=\"theme:vs2012 lang:pgsql decode:true \">date_trunc('month',\u8be5\u6708\u4e2d\u7684\u67d0\u4e00\u5929)+'1month'::interval-'1day'::interval<\/pre>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u53d6\u6708\u4efd\u7684\u8d77\u59cb\u65e5\u671f\u5f88\u5bb9\u6613\uff1a date_tr [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-pgsql"],"views":4403,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":94,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/94"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}