{"id":172053,"date":"2024-11-07T09:53:18","date_gmt":"2024-11-07T01:53:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/172053\/"},"modified":"2024-11-07T09:53:18","modified_gmt":"2024-11-07T01:53:18","slug":"%e8%ab%8b%e6%b3%a8%e6%84%8foracle%e5%b0%8d%e8%b1%a1%e7%9a%84%e5%a4%a7%e5%b0%8f%e5%af%ab","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/172053\/","title":{"rendered":"\u8acb\u6ce8\u610fOracle\u5c0d\u8c61\u7684\u5927\u5c0f\u5beb"},"content":{"rendered":"<h1 id=\"%e8%ab%8b%e6%b3%a8%e6%84%8foracle%e5%b0%8d%e8%b1%a1%e7%9a%84%e5%a4%a7%e5%b0%8f%e5%af%ab-wzfnVwVVqK\">\u8acb\u6ce8\u610fOracle\u5c0d\u8c61\u7684\u5927\u5c0f\u5beb<\/h1>\n<p>\u5728\u4f7f\u7528Oracle\u8cc7\u6599\u5eab\u6642\uff0c\u5927\u5c0f\u5beb\u7684\u8655\u7406\u662f\u4e00\u500b\u5e38\u88ab\u5ffd\u8996\u4f46\u537b\u81f3\u95dc\u91cd\u8981\u7684\u554f\u984c\u3002Oracle\u8cc7\u6599\u5eab\u5c0d\u65bc\u5c0d\u8c61\u540d\u7a31\uff08\u5982\u8868\u683c\u3001\u5217\u3001\u7d22\u5f15\u7b49\uff09\u7684\u5927\u5c0f\u5beb\u6709\u5176\u7279\u5b9a\u7684\u898f\u5247\uff0c\u9019\u4e9b\u898f\u5247\u53ef\u80fd\u6703\u5f71\u97ff\u5230\u8cc7\u6599\u5eab\u7684\u67e5\u8a62\u548c\u64cd\u4f5c\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eOracle\u5c0d\u8c61\u7684\u5927\u5c0f\u5beb\u554f\u984c\uff0c\u5e6b\u52a9\u4f7f\u7528\u8005\u66f4\u597d\u5730\u7406\u89e3\u548c\u61c9\u7528\u9019\u4e9b\u898f\u5247\u3002<\/p>\n<h2 id=\"oracle%e5%b0%8d%e8%b1%a1%e5%90%8d%e7%a8%b1%e7%9a%84%e5%a4%a7%e5%b0%8f%e5%af%ab%e8%a6%8f%e5%89%87-wzfnVwVVqK\">Oracle\u5c0d\u8c61\u540d\u7a31\u7684\u5927\u5c0f\u5beb\u898f\u5247<\/h2>\n<p>\u5728Oracle\u4e2d\uff0c\u5c0d\u8c61\u540d\u7a31\u7684\u5927\u5c0f\u5beb\u8655\u7406\u4e3b\u8981\u53d6\u6c7a\u65bc\u5c0d\u8c61\u540d\u7a31\u7684\u5275\u5efa\u65b9\u5f0f\u3002\u7576\u5275\u5efa\u5c0d\u8c61\u6642\uff0c\u5982\u679c\u4f7f\u7528\u96d9\u5f15\u865f\uff08&#8221;\uff09\u4f86\u5305\u88f9\u5c0d\u8c61\u540d\u7a31\uff0c\u5247\u8a72\u540d\u7a31\u5c07\u88ab\u8996\u70ba\u5340\u5206\u5927\u5c0f\u5beb\uff1b\u5982\u679c\u4e0d\u4f7f\u7528\u96d9\u5f15\u865f\uff0c\u5247\u5c0d\u8c61\u540d\u7a31\u5c07\u88ab\u81ea\u52d5\u8f49\u63db\u70ba\u5927\u5beb\u3002<\/p>\n<h3 id=\"%e7%a4%ba%e4%be%8b-wzfnVwVVqK\">\u793a\u4f8b<\/h3>\n<pre><code>CREATE TABLE \"MyTable\" (\n    \"ID\" NUMBER,\n    \"Name\" VARCHAR2(50)\n);\n<\/code><\/pre>\n<p>\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u8868\u683c\u540d\u7a31\u548c\u5217\u540d\u7a31\u90fd\u88ab\u5305\u88f9\u5728\u96d9\u5f15\u865f\u4e2d\uff0c\u56e0\u6b64\u5b83\u5011\u662f\u5340\u5206\u5927\u5c0f\u5beb\u7684\u3002\u9019\u610f\u5473\u8457\u5728\u67e5\u8a62\u6642\u5fc5\u9808\u4f7f\u7528\u76f8\u540c\u7684\u5927\u5c0f\u5beb\uff1a<\/p>\n<pre><code>SELECT \"ID\", \"Name\" FROM \"MyTable\";\n<\/code><\/pre>\n<p>\u5982\u679c\u4e0d\u4f7f\u7528\u96d9\u5f15\u865f\uff0c\u5247\u5c0d\u8c61\u540d\u7a31\u5c07\u81ea\u52d5\u8f49\u63db\u70ba\u5927\u5beb\uff1a<\/p>\n<pre><code>CREATE TABLE MyTable (\n    ID NUMBER,\n    Name VARCHAR2(50)\n);\n<\/code><\/pre>\n<p>\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u67e5\u8a62\u6642\u53ef\u4ee5\u4f7f\u7528\u4efb\u610f\u5927\u5c0f\u5beb\uff1a<\/p>\n<pre><code>SELECT id, name FROM MyTable;\nSELECT ID, NAME FROM MyTable;\nSELECT Id, Name FROM MyTable;\n<\/code><\/pre>\n<h2 id=\"%e5%a4%a7%e5%b0%8f%e5%af%ab%e5%95%8f%e9%a1%8c%e7%9a%84%e5%bd%b1%e9%9f%bf-wzfnVwVVqK\">\u5927\u5c0f\u5beb\u554f\u984c\u7684\u5f71\u97ff<\/h2>\n<p>\u5c0d\u65bc\u958b\u767c\u8005\u548c\u8cc7\u6599\u5eab\u7ba1\u7406\u54e1\u4f86\u8aaa\uff0c\u7406\u89e3\u9019\u4e9b\u5927\u5c0f\u5beb\u898f\u5247\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u82e5\u4e0d\u5c0f\u5fc3\u4f7f\u7528\u4e86\u932f\u8aa4\u7684\u5927\u5c0f\u5beb\uff0c\u53ef\u80fd\u6703\u5c0e\u81f4\u67e5\u8a62\u5931\u6557\u6216\u8fd4\u56de\u610f\u5916\u7684\u7d50\u679c\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4e00\u500b\u8868\u683c\u662f\u4ee5\u96d9\u5f15\u865f\u5275\u5efa\u7684\uff0c\u5247\u5728\u67e5\u8a62\u6642\u5fc5\u9808\u5b8c\u5168\u9075\u5faa\u5275\u5efa\u6642\u7684\u5927\u5c0f\u5beb\uff0c\u5426\u5247\u5c07\u6703\u51fa\u73fe\u932f\u8aa4\u3002<\/p>\n<h3 id=\"%e5%b8%b8%e8%a6%8b%e9%8c%af%e8%aa%a4-wzfnVwVVqK\">\u5e38\u898b\u932f\u8aa4<\/h3>\n<ul>\n<li>\u5728\u67e5\u8a62\u6642\u672a\u4f7f\u7528\u6b63\u78ba\u7684\u5927\u5c0f\u5beb\uff0c\u5c0e\u81f4\u67e5\u8a62\u5931\u6557\u3002<\/li>\n<li>\u5728\u5275\u5efa\u5c0d\u8c61\u6642\u672a\u8003\u616e\u5230\u5927\u5c0f\u5beb\uff0c\u5c0e\u81f4\u5f8c\u7e8c\u67e5\u8a62\u8b8a\u5f97\u8907\u96dc\u3002<\/li>\n<li>\u5728\u591a\u500b\u958b\u767c\u8005\u4e4b\u9593\u5354\u4f5c\u6642\uff0c\u5c0d\u8c61\u540d\u7a31\u7684\u5927\u5c0f\u5beb\u4e0d\u4e00\u81f4\uff0c\u9020\u6210\u6df7\u6dc6\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%9c%80%e4%bd%b3%e5%af%a6%e8%b8%90-wzfnVwVVqK\">\u6700\u4f73\u5be6\u8e10<\/h2>\n<p>\u70ba\u4e86\u907f\u514d\u56e0\u5927\u5c0f\u5beb\u554f\u984c\u800c\u5f15\u767c\u7684\u932f\u8aa4\uff0c\u5efa\u8b70\u9075\u5faa\u4ee5\u4e0b\u6700\u4f73\u5be6\u8e10\uff1a<\/p>\n<ul>\n<li>\u5728\u5275\u5efa\u5c0d\u8c61\u6642\uff0c\u76e1\u91cf\u907f\u514d\u4f7f\u7528\u96d9\u5f15\u865f\uff0c\u9019\u6a23\u53ef\u4ee5\u7c21\u5316\u67e5\u8a62\u3002<\/li>\n<li>\u5982\u679c\u5fc5\u9808\u4f7f\u7528\u96d9\u5f15\u865f\uff0c\u5247\u5728\u5718\u968a\u5167\u90e8\u5efa\u7acb\u4e00\u81f4\u7684\u547d\u540d\u898f\u7bc4\uff0c\u4ee5\u78ba\u4fdd\u6240\u6709\u958b\u767c\u8005\u90fd\u9075\u5faa\u76f8\u540c\u7684\u5927\u5c0f\u5beb\u898f\u5247\u3002<\/li>\n<li>\u5728\u6587\u6a94\u4e2d\u6e05\u695a\u5730\u8a18\u9304\u5c0d\u8c61\u540d\u7a31\u53ca\u5176\u5927\u5c0f\u5beb\uff0c\u4ee5\u4fbf\u672a\u4f86\u7684\u53c3\u8003\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-wzfnVwVVqK\">\u7d50\u8ad6<\/h2>\n<p>Oracle\u8cc7\u6599\u5eab\u7684\u5c0d\u8c61\u540d\u7a31\u5927\u5c0f\u5beb\u554f\u984c\u662f\u4e00\u500b\u4e0d\u5bb9\u5ffd\u8996\u7684\u7d30\u7bc0\u3002\u4e86\u89e3\u4e26\u9075\u5faa\u9019\u4e9b\u898f\u5247\u4e0d\u50c5\u80fd\u63d0\u9ad8\u958b\u767c\u6548\u7387\uff0c\u9084\u80fd\u6e1b\u5c11\u56e0\u932f\u8aa4\u67e5\u8a62\u800c\u5c0e\u81f4\u7684\u554f\u984c\u3002\u5c0d\u65bc\u4f7f\u7528Oracle\u8cc7\u6599\u5eab\u7684\u958b\u767c\u8005\u548c\u7ba1\u7406\u54e1\u4f86\u8aaa\uff0c\u638c\u63e1\u9019\u4e9b\u77e5\u8b58\u662f\u975e\u5e38\u5fc5\u8981\u7684\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc<em><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/em>\u548c<em><a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a><\/em>\u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3Oracle\u5c0d\u8c61\u7684\u5927\u5c0f\u5beb\u898f\u5247\uff0c\u78ba\u4fdd\u6b63\u78ba\u4f7f\u7528\u6a19\u8b58\u7b26\uff0c\u907f\u514d\u6f5b\u5728\u7684\u932f\u8aa4\u548c\u554f\u984c\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-172053","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/172053","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=172053"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/172053\/revisions"}],"predecessor-version":[{"id":172054,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/172053\/revisions\/172054"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=172053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=172053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=172053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}