{"id":154563,"date":"2024-11-02T16:51:20","date_gmt":"2024-11-02T08:51:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/154563\/"},"modified":"2024-11-02T16:51:22","modified_gmt":"2024-11-02T08:51:22","slug":"%e5%b0%8d-oracle-%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b%e7%9a%84%e5%85%a8%e6%96%b0%e8%aa%8d%e8%ad%98","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/154563\/","title":{"rendered":"\u5c0d Oracle \u6578\u64da\u985e\u578b\u7684\u5168\u65b0\u8a8d\u8b58"},"content":{"rendered":"<h1 id=\"%e5%b0%8d-oracle-%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b%e7%9a%84%e5%85%a8%e6%96%b0%e8%aa%8d%e8%ad%98-EICtmKmbJw\">\u5c0d Oracle \u6578\u64da\u985e\u578b\u7684\u5168\u65b0\u8a8d\u8b58<\/h1>\n<p>\u5728\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\u4e2d\uff0c\u6578\u64da\u985e\u578b\u7684\u9078\u64c7\u5c0d\u65bc\u6578\u64da\u7684\u5b58\u5132\u3001\u67e5\u8a62\u548c\u8655\u7406\u81f3\u95dc\u91cd\u8981\u3002Oracle \u6578\u64da\u5eab\u4f5c\u70ba\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u63d0\u4f9b\u4e86\u591a\u7a2e\u6578\u64da\u985e\u578b\u4ee5\u6eff\u8db3\u4e0d\u540c\u7684\u61c9\u7528\u9700\u6c42\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e Oracle \u6578\u64da\u985e\u578b\u7684\u7279\u9ede\u53ca\u5176\u61c9\u7528\uff0c\u5e6b\u52a9\u8b80\u8005\u5c0d\u9019\u4e00\u4e3b\u984c\u6709\u66f4\u5168\u9762\u7684\u8a8d\u8b58\u3002<\/p>\n<h2 id=\"%e5%9f%ba%e6%9c%ac%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b-EICtmKmbJw\">\u57fa\u672c\u6578\u64da\u985e\u578b<\/h2>\n<p>Oracle \u6578\u64da\u5eab\u63d0\u4f9b\u4e86\u591a\u7a2e\u57fa\u672c\u6578\u64da\u985e\u578b\uff0c\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>NUMBER<\/strong>: \u7528\u65bc\u5b58\u5132\u6578\u5b57\u6578\u64da\uff0c\u652f\u6301\u6574\u6578\u548c\u6d6e\u9ede\u6578\u3002\u53ef\u4ee5\u6307\u5b9a\u7cbe\u5ea6\u548c\u5c0f\u6578\u4f4d\u6578\uff0c\u4f8b\u5982 <code>NUMBER(10, 2)<\/code> \u8868\u793a\u6700\u591a\u5341\u4f4d\u6578\u5b57\uff0c\u5176\u4e2d\u5169\u4f4d\u70ba\u5c0f\u6578\u3002<\/li>\n<li><strong>CHAR<\/strong>: \u56fa\u5b9a\u9577\u5ea6\u7684\u5b57\u7b26\u6578\u64da\u985e\u578b\uff0c\u6700\u5927\u9577\u5ea6\u70ba 2000 \u5b57\u7b26\u3002\u82e5\u5b58\u5132\u7684\u5b57\u7b26\u5c11\u65bc\u6307\u5b9a\u9577\u5ea6\uff0c\u5247\u6703\u7528\u7a7a\u683c\u586b\u5145\u3002<\/li>\n<li><strong>VARCHAR2<\/strong>: \u53ef\u8b8a\u9577\u5ea6\u7684\u5b57\u7b26\u6578\u64da\u985e\u578b\uff0c\u6700\u5927\u9577\u5ea6\u70ba 4000 \u5b57\u7b26\u3002\u9019\u7a2e\u6578\u64da\u985e\u578b\u5728\u5b58\u5132\u6642\u4e0d\u6703\u586b\u5145\u7a7a\u683c\uff0c\u7bc0\u7701\u4e86\u5b58\u5132\u7a7a\u9593\u3002<\/li>\n<li><strong>DATE<\/strong>: \u7528\u65bc\u5b58\u5132\u65e5\u671f\u548c\u6642\u9593\uff0c\u7cbe\u78ba\u5230\u79d2\u3002Oracle \u7684\u65e5\u671f\u683c\u5f0f\u70ba <code>YYYY-MM-DD HH24:MI:SS<\/code>\u3002<\/li>\n<li><strong>BLOB<\/strong>: \u7528\u65bc\u5b58\u5132\u4e8c\u9032\u5236\u5927\u5c0d\u8c61\uff0c\u5982\u5716\u50cf\u548c\u97f3\u983b\u6587\u4ef6\uff0c\u6700\u5927\u53ef\u9054 4GB\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%a4%87%e5%90%88%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b-EICtmKmbJw\">\u8907\u5408\u6578\u64da\u985e\u578b<\/h2>\n<p>\u9664\u4e86\u57fa\u672c\u6578\u64da\u985e\u578b\uff0cOracle \u9084\u652f\u6301\u8907\u5408\u6578\u64da\u985e\u578b\uff0c\u9019\u4e9b\u985e\u578b\u53ef\u4ee5\u7528\u4f86\u5b58\u5132\u66f4\u8907\u96dc\u7684\u6578\u64da\u7d50\u69cb\uff1a<\/p>\n<ul>\n<li><strong>OBJECT<\/strong>: \u7528\u65bc\u5b9a\u7fa9\u7528\u6236\u81ea\u5b9a\u7fa9\u7684\u6578\u64da\u985e\u578b\uff0c\u53ef\u4ee5\u5305\u542b\u591a\u500b\u5c6c\u6027\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5b9a\u7fa9\u4e00\u500b <code>PERSON<\/code> \u5c0d\u8c61\uff0c\u5305\u542b\u59d3\u540d\u3001\u5e74\u9f61\u7b49\u5c6c\u6027\u3002<\/li>\n<li><strong>TABLE<\/strong>: \u7528\u65bc\u5b58\u5132\u4e00\u7d44\u76f8\u540c\u985e\u578b\u7684\u6578\u64da\uff0c\u985e\u4f3c\u65bc\u6578\u7d44\u3002\u53ef\u4ee5\u7528\u4f86\u5b58\u5132\u591a\u500b <code>OBJECT<\/code> \u985e\u578b\u7684\u5be6\u4f8b\u3002<\/li>\n<li><strong>REF<\/strong>: \u7528\u65bc\u5f15\u7528\u5176\u4ed6\u5c0d\u8c61\u7684\u6578\u64da\u985e\u578b\uff0c\u985e\u4f3c\u65bc\u6307\u91dd\uff0c\u80fd\u5920\u63d0\u9ad8\u6578\u64da\u7684\u95dc\u806f\u6027\u548c\u67e5\u8a62\u6548\u7387\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b%e7%9a%84%e9%81%b8%e6%93%87-EICtmKmbJw\">\u6578\u64da\u985e\u578b\u7684\u9078\u64c7<\/h2>\n<p>\u5728\u8a2d\u8a08\u6578\u64da\u5eab\u6642\uff0c\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u985e\u578b\u81f3\u95dc\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u9078\u64c7\u6578\u64da\u985e\u578b\u6642\u9700\u8981\u8003\u616e\u7684\u56e0\u7d20\uff1a<\/p>\n<ul>\n<li><strong>\u6578\u64da\u7684\u6027\u8cea<\/strong>: \u6839\u64da\u6578\u64da\u7684\u7279\u6027\u9078\u64c7\u5408\u9069\u7684\u985e\u578b\uff0c\u4f8b\u5982\uff0c\u5c0d\u65bc\u9700\u8981\u7cbe\u78ba\u8a08\u7b97\u7684\u91d1\u984d\uff0c\u61c9\u9078\u64c7 <code>NUMBER<\/code> \u985e\u578b\u3002<\/li>\n<li><strong>\u5b58\u5132\u6548\u7387<\/strong>: \u4f7f\u7528\u53ef\u8b8a\u9577\u5ea6\u7684\u6578\u64da\u985e\u578b\uff08\u5982 <code>VARCHAR2<\/code>\uff09\u53ef\u4ee5\u7bc0\u7701\u5b58\u5132\u7a7a\u9593\uff0c\u7279\u5225\u662f\u5728\u8655\u7406\u5927\u91cf\u6587\u672c\u6578\u64da\u6642\u3002<\/li>\n<li><strong>\u67e5\u8a62\u6027\u80fd<\/strong>: \u67d0\u4e9b\u6578\u64da\u985e\u578b\u5728\u67e5\u8a62\u6642\u6027\u80fd\u66f4\u4f73\uff0c\u4f8b\u5982\uff0c\u4f7f\u7528 <code>INDEX<\/code> \u5c0d <code>NUMBER<\/code> \u985e\u578b\u7684\u5b57\u6bb5\u9032\u884c\u7d22\u5f15\u53ef\u4ee5\u63d0\u9ad8\u67e5\u8a62\u901f\u5ea6\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-EICtmKmbJw\">\u7d50\u8ad6<\/h2>\n<p>Oracle \u6578\u64da\u5eab\u63d0\u4f9b\u4e86\u591a\u6a23\u5316\u7684\u6578\u64da\u985e\u578b\uff0c\u5f9e\u57fa\u672c\u7684\u6578\u5b57\u548c\u5b57\u7b26\u985e\u578b\u5230\u8907\u96dc\u7684\u5c0d\u8c61\u548c\u8868\u985e\u578b\uff0c\u9019\u4e9b\u6578\u64da\u985e\u578b\u7684\u9078\u64c7\u5c0d\u65bc\u6578\u64da\u7684\u5b58\u5132\u548c\u8655\u7406\u6709\u8457\u6df1\u9060\u7684\u5f71\u97ff\u3002\u4e86\u89e3\u9019\u4e9b\u6578\u64da\u985e\u578b\u7684\u7279\u9ede\u53ca\u5176\u9069\u7528\u5834\u666f\uff0c\u80fd\u5920\u5e6b\u52a9\u958b\u767c\u8005\u5728\u8a2d\u8a08\u6578\u64da\u5eab\u6642\u505a\u51fa\u66f4\u660e\u667a\u7684\u6c7a\u7b56\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u548c\u6578\u64da\u5eab\u7ba1\u7406\u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22 Oracle \u6578\u64da\u985e\u578b\u7684\u5168\u65b0\u8a8d\u8b58\uff0c\u6df1\u5165\u4e86\u89e3\u5176\u7279\u6027\u3001\u61c9\u7528\u53ca\u6700\u4f73\u5be6\u8e10\uff0c\u63d0\u5347\u6578\u64da\u7ba1\u7406\u6548\u7387\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-154563","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/154563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=154563"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/154563\/revisions"}],"predecessor-version":[{"id":154564,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/154563\/revisions\/154564"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=154563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=154563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=154563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}