{"id":150171,"date":"2020-09-02T10:44:35","date_gmt":"2020-09-02T02:44:35","guid":{"rendered":"http:\/\/4563.org\/?p=150171"},"modified":"2020-09-02T10:44:35","modified_gmt":"2020-09-02T02:44:35","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-mysql-%e4%b8%ad%e6%9f%a5%e8%af%a2-datetime-%e7%b1%bb%e5%9e%8b%e5%b9%b6%e8%bd%ac%e6%8d%a2%e4%b8%ba%e6%97%b6%e9%97%b4%e6%88%b3%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=150171","title":{"rendered":"\u5982\u4f55\u5728 Mysql \u4e2d\u67e5\u8be2 datetime \u7c7b\u578b\u5e76\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55\u5728 Mysql \u4e2d\u67e5\u8be2 datetime \u7c7b\u578b\u5e76\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kerb15 <\/span>  <span><i><\/i> 14<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u67e5\u8be2\u8bed\u53e5\uff1aselect * from xxx<\/p>\n<p>\u5176\u4e2d\u6709\u4e00\u5217\u662f\u8bb0\u5f55\u65f6\u95f4\u7684\uff0c\u7c7b\u578b\u662f datetime(3)\uff0c\u539f\u8bed\u53e5\u5f97\u5230\u7684\u7ed3\u679c\u662f\uff1a2020-08-21 01.01.01.000<\/p>\n<p>\u5e0c\u671b\u5c06\u67e5\u5230\u7684\u65f6\u95f4\u76f4\u63a5\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233\uff0c\u80fd\u505a\u5230\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3035376\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Wait845 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u505a\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3035377\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liprais <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             rtfm                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3035378\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chotow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             select unix_timestamp(xxx) from xxx                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3035379\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fangyuanyoudu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u601d\u8def\u6709\u4e24\u79cd\uff0c\u4e00\u4e2a\u662f\u5728\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\u5230\u7684\u65f6\u95f4\u5b57\u6bb5\u76f4\u63a5\u8f6c\u6362\u6210\u65f6\u95f4\u6233\uff0c\u50cf\u4e09\u7684 sql \u8bed\u6cd5\u3002\u53e6\u4e00\u79cd\u662f\u6570\u636e\u5e93\u53ea\u505a\u67e5\u8be2\uff0c\u51cf\u5c11\u6570\u636e\u5e93\u538b\u529b\uff0c\u67e5\u5230\u6570\u636e\u4e4b\u540e\uff0c\u7a0b\u5e8f\u91cc\u8f6c\u6362\uff0c\u7528 Jackson \u6216\u8005\u5176\u4ed6\u5de5\u5177\u8f6c\u6362\u51fa\u6765\u90fd\u53ef\u4ee5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3035380\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nutting <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8981\u662f\u6700\u540e\u662f java \u4ee3\u7801\uff0cjson \u6ce8\u89e3\u5c31\u80fd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3035381\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhangysh1995 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u51fd\u6570\u4e0d\u53ef\uff1f`UNIX_TIMESTAMP()` -&gt; https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/date-and-time-functions.html#function_unix-timestamp                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728 Mysql \u4e2d\u67e5\u8be2 dat&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\/150171"}],"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=150171"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/150171\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=150171"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=150171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}