{"id":5042,"date":"2024-11-14T12:17:36","date_gmt":"2024-11-14T04:17:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5042\/"},"modified":"2024-11-14T12:17:36","modified_gmt":"2024-11-14T04:17:36","slug":"oracle%e6%97%b6%e9%97%b4%e6%a0%bc%e5%bc%8f%e6%80%8e%e4%b9%88%e9%80%89","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5042\/","title":{"rendered":"oracle\u65f6\u95f4\u683c\u5f0f\u600e\u4e48\u9009"},"content":{"rendered":"<blockquote><p>\n  \u5728\u9009\u62e9 oracle \u65f6\u95f4\u683c\u5f0f\u65f6\uff0c\u5e94\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u3001\u6027\u80fd\u3001\u5b58\u50a8\u7a7a\u95f4\u548c\u517c\u5bb9\u6027\u7b49\u56e0\u7d20\u8fdb\u884c\u8003\u91cf\u3002\u5bf9\u4e8e\u5927\u591a\u6570\u5e94\u7528\u7a0b\u5e8f\uff0c\u5efa\u8bae\u4f7f\u7528 date \u5b58\u50a8\u65e5\u671f\uff0ctime \u5b58\u50a8\u65f6\u95f4\uff0ctimestamp \u5b58\u50a8\u65e5\u671f\u548c\u65f6\u95f4\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/21\/2024052112272161687.jpg\" class=\"aligncenter\" title=\"oracle\u65f6\u95f4\u683c\u5f0f\u600e\u4e48\u9009\u63d2\u56fe\" alt=\"oracle\u65f6\u95f4\u683c\u5f0f\u600e\u4e48\u9009\u63d2\u56fe\" \/><\/p>\n<p><strong>Oracle \u65f6\u95f4\u683c\u5f0f\u7684\u9009\u62e9<\/strong><\/p>\n<p><strong>\u9009\u62e9\u65f6\u95f4\u683c\u5f0f\u7684\u4f9d\u636e<\/strong><\/p>\n<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\u9009\u62e9\u65f6\u95f4\u683c\u5f0f\u65f6\uff0c\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u56e0\u7d20\uff1a<\/p>\n<ul>\n<li> <strong>\u4e1a\u52a1\u9700\u6c42\uff1a<\/strong>\u65f6\u95f4\u683c\u5f0f\u5e94\u80fd\u6ee1\u8db3\u5e94\u7528\u7a0b\u5e8f\u548c\u4e1a\u52a1\u9700\u6c42\uff0c\u4f8b\u5982\u663e\u793a\u65e5\u671f\u6216\u65f6\u95f4\u6233\u3002<\/li>\n<li> <strong>\u6027\u80fd\uff1a<\/strong>\u67d0\u4e9b\u65f6\u95f4\u683c\u5f0f\u6bd4\u5176\u4ed6\u683c\u5f0f\u66f4\u6709\u6548\u7387\u3002<\/li>\n<li> <strong>\u5b58\u50a8\u7a7a\u95f4\uff1a<\/strong>\u4e0d\u540c\u65f6\u95f4\u683c\u5f0f\u5360\u7528\u4e0d\u540c\u7684\u5b58\u50a8\u7a7a\u95f4\u3002<\/li>\n<li> <strong>\u517c\u5bb9\u6027\uff1a<\/strong>\u9700\u8981\u8003\u8651\u4e0e\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u6216\u7cfb\u7edf\u96c6\u6210\u7684\u517c\u5bb9\u6027\u3002<\/li>\n<\/ul>\n<p><strong>\u53ef\u7528\u7684\u65f6\u95f4\u683c\u5f0f<\/strong><\/p>\n<p>Oracle \u6570\u636e\u5e93\u652f\u6301\u591a\u79cd\u65f6\u95f4\u683c\u5f0f\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li> <strong>DATE\uff1a<\/strong>\u4ec5\u5b58\u50a8\u65e5\u671f\uff0c\u4e0d\u5b58\u50a8\u65f6\u95f4\u3002<\/li>\n<li> <strong>TIME\uff1a<\/strong>\u4ec5\u5b58\u50a8\u65f6\u95f4\uff0c\u4e0d\u5b58\u50a8\u65e5\u671f\u3002<\/li>\n<li> <strong>TIMESTAMP\uff1a<\/strong>\u5b58\u50a8\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u4ee5\u53ca\u65f6\u533a\u4fe1\u606f\u3002<\/li>\n<li> <strong>TIMESTAMP WITH TIME ZONE\uff1a<\/strong>\u4e0e TIMESTAMP \u7c7b\u4f3c\uff0c\u4f46\u5b58\u50a8\u5728\u7279\u5b9a\u65f6\u533a\uff0c\u800c\u4e0d\u662f UTC\u3002<\/li>\n<li> <strong>TIMESTAMP WITH LOCAL TIME ZONE\uff1a<\/strong>\u4e0e TIMESTAMP WITH TIME ZONE \u7c7b\u4f3c\uff0c\u4f46\u5b58\u50a8\u5728\u4f1a\u8bdd\u65f6\u533a\uff0c\u800c\u4e0d\u662f UTC\u3002<\/li>\n<\/ul>\n<p><strong>\u63a8\u8350\u7684\u65f6\u95f4\u683c\u5f0f<\/strong><\/p>\n<p>\u5bf9\u4e8e\u5927\u591a\u6570\u5e94\u7528\u7a0b\u5e8f\uff0c\u5efa\u8bae\u4f7f\u7528\u4ee5\u4e0b\u65f6\u95f4\u683c\u5f0f\uff1a<\/p>\n<ul>\n<li> <strong>\u65e5\u671f\uff1a<\/strong>DATE<\/li>\n<li> <strong>\u65f6\u95f4\uff1a<\/strong>TIME<\/li>\n<li> <strong>\u65e5\u671f\u548c\u65f6\u95f4\uff1a<\/strong>TIMESTAMP<\/li>\n<\/ul>\n<p><strong>\u8be6\u7ec6\u8bf4\u660e<\/strong><\/p>\n<ul>\n<li> <strong>DATE\uff1a<\/strong>\u4ec5\u5b58\u50a8\u65e5\u671f\uff0c\u8303\u56f4\u4ece\u516c\u5143\u524d 4712 \u5e74 1 \u6708 1 \u65e5\u5230\u516c\u5143 9999 \u5e74 12 \u6708 31 \u65e5\u3002\u5b83\u4ee5 YYYY-MM-DD \u683c\u5f0f\u5b58\u50a8\u3002<\/li>\n<li> <strong>TIME\uff1a<\/strong>\u4ec5\u5b58\u50a8\u65f6\u95f4\uff0c\u8303\u56f4\u4ece 00:00:00 \u5230 23:59:59\u3002\u5b83\u4ee5 HH:MM:SS \u683c\u5f0f\u5b58\u50a8\uff0c\u5176\u4e2d HH \u8868\u793a\u5c0f\u65f6\uff0cMM \u8868\u793a\u5206\u949f\uff0cSS \u8868\u793a\u79d2\u3002<\/li>\n<li> <strong>TIMESTAMP\uff1a<\/strong>\u5b58\u50a8\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u4ee5\u53ca\u65f6\u533a\u4fe1\u606f\u3002\u5b83\u4ee5 YYYY-MM-DD HH:MM:SS.FFn \u683c\u5f0f\u5b58\u50a8\uff0c\u5176\u4e2d FFn \u8868\u793a\u6beb\u79d2\u5206\u6570\u3002\u65f6\u533a\u4fe1\u606f\u5b58\u50a8\u5728\u65f6\u533a\u504f\u79fb\u91cf\u4e2d\uff0c\u4f8b\u5982 &#8220;+08:00&#8243;\u3002<\/li>\n<li> <strong>TIMESTAMP WITH TIME ZONE\uff1a<\/strong>\u4e0e TIMESTAMP \u7c7b\u4f3c\uff0c\u4f46\u5b58\u50a8\u5728\u7279\u5b9a\u65f6\u533a\uff0c\u800c\u4e0d\u662f UTC\u3002\u5b83\u4ee5 YYYY-MM-DD HH:MM:SS.FFn Z \u683c\u5f0f\u5b58\u50a8\uff0c\u5176\u4e2d Z \u8868\u793a\u65f6\u533a\u540d\u79f0\uff0c\u4f8b\u5982 &#8220;Asia\/Shanghai&#8221;\u3002<\/li>\n<li> <strong>TIMESTAMP WITH LOCAL TIME ZONE\uff1a<\/strong>\u4e0e TIMESTAMP WITH TIME ZONE \u7c7b\u4f3c\uff0c\u4f46\u5b58\u50a8\u5728\u4f1a\u8bdd\u65f6\u533a\uff0c\u800c\u4e0d\u662f UTC\u3002\u5b83\u4ee5 YYYY-MM-DD HH:MM:SS.FFn TZT \u683c\u5f0f\u5b58\u50a8\uff0c\u5176\u4e2d TZT \u8868\u793a\u65f6\u533a\u540d\u79f0\uff0c\u4f8b\u5982 &#8220;Europe\/London&#8221;\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u65f6\u95f4\u683c\u5f0f\u600e\u4e48\u9009\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u9009\u62e9 oracle \u65f6\u95f4\u683c\u5f0f\u65f6\uff0c\u5e94\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u3001\u6027\u80fd\u3001\u5b58\u50a8\u7a7a\u95f4\u548c\u517c\u5bb9\u6027\u7b49\u56e0\u7d20\u8fdb\u884c\u8003\u91cf\u3002\u5bf9\u4e8e\u5927\u591a\u6570\u5e94\u7528\u7a0b\u5e8f\uff0c\u5efa\u8bae\u4f7f\u7528 date \u5b58\u50a8\u65e5\u671f\uff0ctime \u5b58\u50a8\u65f6\u95f4\uff0ctimestamp \u5b58\u50a8\u65e5\u671f\u548c\u65f6\u95f4\u3002 Oracle \u65f6\u95f4\u683c\u5f0f\u7684\u9009\u62e9 \u9009\u62e9\u65f6\u95f4\u683c\u5f0f\u7684\u4f9d\u636e \u5728 Oracle \u6570\u636e\u5e93\u4e2d\u9009\u62e9\u65f6\u95f4\u683c\u5f0f\u65f6\uff0c\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u56e0\u7d20\uff1a \u4e1a\u52a1\u9700\u6c42\uff1a\u65f6\u95f4\u683c\u5f0f\u5e94\u80fd\u6ee1\u8db3\u5e94\u7528\u7a0b\u5e8f\u548c\u4e1a\u52a1\u9700\u6c42\uff0c\u4f8b\u5982\u663e\u793a\u65e5\u671f\u6216\u65f6\u95f4\u6233\u3002 \u6027\u80fd\uff1a\u67d0\u4e9b\u65f6\u95f4\u683c\u5f0f\u6bd4\u5176\u4ed6\u683c\u5f0f\u66f4\u6709\u6548\u7387\u3002 \u5b58\u50a8\u7a7a\u95f4\uff1a\u4e0d\u540c\u65f6\u95f4\u683c\u5f0f\u5360\u7528\u4e0d\u540c\u7684\u5b58\u50a8\u7a7a\u95f4\u3002 \u517c\u5bb9\u6027\uff1a\u9700\u8981\u8003\u8651\u4e0e\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u6216\u7cfb\u7edf\u96c6\u6210\u7684\u517c\u5bb9\u6027\u3002 \u53ef\u7528\u7684\u65f6\u95f4\u683c\u5f0f Oracle \u6570\u636e\u5e93\u652f\u6301\u591a\u79cd\u65f6\u95f4\u683c\u5f0f\uff0c\u5305\u62ec\uff1a DATE\uff1a\u4ec5\u5b58\u50a8\u65e5\u671f\uff0c\u4e0d\u5b58\u50a8\u65f6\u95f4\u3002 TIME\uff1a\u4ec5\u5b58\u50a8\u65f6\u95f4\uff0c\u4e0d\u5b58\u50a8\u65e5\u671f\u3002 TIMESTAMP\uff1a\u5b58\u50a8\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u4ee5\u53ca\u65f6\u533a\u4fe1\u606f\u3002 TIMESTAMP WITH TIME ZONE\uff1a\u4e0e TIMESTAMP \u7c7b\u4f3c\uff0c\u4f46\u5b58\u50a8\u5728\u7279\u5b9a\u65f6\u533a\uff0c\u800c\u4e0d\u662f UTC\u3002 TIMESTAMP WITH LOCAL TIME ZONE\uff1a\u4e0e TIMESTAMP WITH TIME ZONE \u7c7b\u4f3c\uff0c\u4f46\u5b58\u50a8\u5728\u4f1a\u8bdd\u65f6\u533a\uff0c\u800c\u4e0d\u662f UTC\u3002 \u63a8\u8350\u7684\u65f6\u95f4\u683c\u5f0f \u5bf9\u4e8e\u5927\u591a\u6570\u5e94\u7528\u7a0b\u5e8f\uff0c\u5efa\u8bae\u4f7f\u7528\u4ee5\u4e0b\u65f6\u95f4\u683c\u5f0f\uff1a \u65e5\u671f\uff1aDATE \u65f6\u95f4\uff1aTIME \u65e5\u671f\u548c\u65f6\u95f4\uff1aTIMESTAMP \u8be6\u7ec6\u8bf4\u660e DATE\uff1a\u4ec5\u5b58\u50a8\u65e5\u671f\uff0c\u8303\u56f4\u4ece\u516c\u5143\u524d 4712 \u5e74 1 \u6708 1 \u65e5\u5230\u516c\u5143 9999 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-5042","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=5042"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5042\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}