{"id":5604,"date":"2024-11-14T12:41:41","date_gmt":"2024-11-14T04:41:41","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5604\/"},"modified":"2024-11-14T12:41:41","modified_gmt":"2024-11-14T04:41:41","slug":"oracle%e4%b8%ad%e6%80%8e%e4%b9%88%e6%af%94%e8%be%83%e6%97%b6%e9%97%b4","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5604\/","title":{"rendered":"oracle\u4e2d\u600e\u4e48\u6bd4\u8f83\u65f6\u95f4"},"content":{"rendered":"<blockquote><p>\n  oracle \u4e2d\u6bd4\u8f83\u65f6\u95f4\u7684\u4e24\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff08=\u3001&gt;\u3001 <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/30\/2024053018151539775.jpg\" class=\"aligncenter\" title=\"oracle\u4e2d\u600e\u4e48\u6bd4\u8f83\u65f6\u95f4\u63d2\u56fe\" alt=\"oracle\u4e2d\u600e\u4e48\u6bd4\u8f83\u65f6\u95f4\u63d2\u56fe\" \/><\/p>\n<p><strong>Oracle \u4e2d\u6bd4\u8f83\u65f6\u95f4\u7684\u4e24\u79cd\u65b9\u6cd5<\/strong><\/p>\n<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0c\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6bd4\u8f83\u65f6\u95f4\uff1a<\/p>\n<p><strong>1. \u4f7f\u7528\u6bd4\u8f83\u8fd0\u7b97\u7b26<\/strong><\/p>\n<p>\u6bd4\u8f83\u8fd0\u7b97\u7b26\u7528\u4e8e\u6bd4\u8f83\u4e24\u4e2a\u65f6\u95f4\u503c\u3002\u5e38\u7528\u7684\u6bd4\u8f83\u8fd0\u7b97\u7b26\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>=\uff1a\u7b49\u4e8e<\/li>\n<li>&gt;\uff1a\u5927\u4e8e<\/li>\n<li> <\/li>\n<li>&gt;=\uff1a\u5927\u4e8e\u7b49\u4e8e<\/li>\n<li> <\/li>\n<li>\uff1a\u4e0d\u7b49\u4e8e<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>SELECT *\nFROM schedule\nWHERE start_time &gt; '09:00:00'  -- \u627e\u51fa\u5f00\u59cb\u65f6\u95f4\u665a\u4e8e 09:00:00 \u7684\u8bb0\u5f55<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>2. \u4f7f\u7528 BETWEEN \u8fd0\u7b97\u7b26<\/strong><\/p>\n<p>BETWEEN \u8fd0\u7b97\u7b26\u7528\u4e8e\u68c0\u67e5\u4e00\u4e2a\u65f6\u95f4\u503c\u662f\u5426\u4ecb\u4e8e\u6307\u5b9a\u7684\u4e24\u4e2a\u65f6\u95f4\u503c\u4e4b\u95f4\uff08\u5305\u62ec\u8fb9\u754c\u503c\uff09\u3002\u8bed\u6cd5\u4e3a\uff1a<\/p>\n<pre>BETWEEN start_time AND end_time<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>SELECT *\nFROM schedule\nWHERE start_time BETWEEN '09:00:00' AND '12:00:00'  -- \u627e\u51fa\u5f00\u59cb\u65f6\u95f4\u5728 09:00:00 \u548c 12:00:00 \u4e4b\u95f4\u7684\u8bb0\u5f55<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236\n<\/p><\/blockquote>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e2d\u600e\u4e48\u6bd4\u8f83\u65f6\u95f4\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>oracle \u4e2d\u6bd4\u8f83\u65f6\u95f4\u7684\u4e24\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff08=\u3001&gt;\u3001 Oracle \u4e2d\u6bd4\u8f83\u65f6\u95f4\u7684\u4e24\u79cd\u65b9\u6cd5 \u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0c\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6bd4\u8f83\u65f6\u95f4\uff1a 1. \u4f7f\u7528\u6bd4\u8f83\u8fd0\u7b97\u7b26 \u6bd4\u8f83\u8fd0\u7b97\u7b26\u7528\u4e8e\u6bd4\u8f83\u4e24\u4e2a\u65f6\u95f4\u503c\u3002\u5e38\u7528\u7684\u6bd4\u8f83\u8fd0\u7b97\u7b26\u5305\u62ec\uff1a =\uff1a\u7b49\u4e8e &gt;\uff1a\u5927\u4e8e &gt;=\uff1a\u5927\u4e8e\u7b49\u4e8e \uff1a\u4e0d\u7b49\u4e8e \u4f8b\u5982\uff1a SELECT * FROM schedule WHERE start_time &gt; &#8217;09:00:00&#8242; &#8212; \u627e\u51fa\u5f00\u59cb\u65f6\u95f4\u665a\u4e8e 09:00:00 \u7684\u8bb0\u5f55 \u767b\u5f55\u540e\u590d\u5236 2. \u4f7f\u7528 BETWEEN \u8fd0\u7b97\u7b26 BETWEEN \u8fd0\u7b97\u7b26\u7528\u4e8e\u68c0\u67e5\u4e00\u4e2a\u65f6\u95f4\u503c\u662f\u5426\u4ecb\u4e8e\u6307\u5b9a\u7684\u4e24\u4e2a\u65f6\u95f4\u503c\u4e4b\u95f4\uff08\u5305\u62ec\u8fb9\u754c\u503c\uff09\u3002\u8bed\u6cd5\u4e3a\uff1a BETWEEN start_time AND end_time \u767b\u5f55\u540e\u590d\u5236 \u4f8b\u5982\uff1a SELECT * FROM schedule WHERE start_time BETWEEN &#8217;09:00:00&#8242; AND &#8217;12:00:00&#8242; &#8212; \u627e\u51fa\u5f00\u59cb\u65f6\u95f4\u5728 09:00:00 \u548c 12:00:00 [&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-5604","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5604","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=5604"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5604\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}