{"id":15954,"date":"2023-12-04T23:45:49","date_gmt":"2023-12-04T15:45:49","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=15954"},"modified":"2023-12-05T00:22:36","modified_gmt":"2023-12-04T16:22:36","slug":"oracle-zhong-plsql-zhong-you-na-xie-ke-yong-de-shu","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/12\/04\/oracle-zhong-plsql-zhong-you-na-xie-ke-yong-de-shu\/","title":{"rendered":"Oracle \u4e2d PLSQL \u4e2d\u6709\u54ea\u4e9b\u53ef\u7528\u7684\u6570\u636e\u7c7b\u578b\uff1f"},"content":{"rendered":"<p>\u5728 Oracle \u7684 PL\/SQL\uff08Procedural Language\/Structured Query Language\uff09\u4e2d\uff0c\u6709\u591a\u79cd\u6570\u636e\u7c7b\u578b\u53ef\u7528\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684 PL\/SQL \u6570\u636e\u7c7b\u578b\uff1a<\/p>\n<ol>\n<li>\n<strong>\u6807\u91cf\u6570\u636e\u7c7b\u578b\uff1a<\/strong><\/p>\n<ul>\n<li><strong>CHAR \/ VARCHAR2 \/ VARCHAR\uff1a<\/strong> \u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u5176\u4e2d <code>CHAR<\/code> \u662f\u5b9a\u957f\u5b57\u7b26\u4e32\uff0c\u800c <code>VARCHAR2<\/code>\uff08\u6216 <code>VARCHAR<\/code>\uff09\u662f\u53ef\u53d8\u957f\u5b57\u7b26\u4e32\u3002<\/li>\n<li><strong>NUMBER\uff1a<\/strong> \u7528\u4e8e\u5b58\u50a8\u6570\u5b57\uff0c\u5305\u62ec\u6574\u6570\u548c\u5c0f\u6570\u3002<\/li>\n<li><strong>DATE \/ TIMESTAMP\uff1a<\/strong> \u7528\u4e8e\u5b58\u50a8\u65e5\u671f\u548c\u65f6\u95f4\u4fe1\u606f\u3002<\/li>\n<li><strong>BOOLEAN\uff1a<\/strong> \u7528\u4e8e\u5b58\u50a8\u5e03\u5c14\u503c\uff0c\u53ef\u4ee5\u662f <code>TRUE<\/code>\u3001<code>FALSE<\/code> \u6216 <code>NULL<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u590d\u5408\u6570\u636e\u7c7b\u578b\uff1a<\/strong><\/p>\n<ul>\n<li><strong>TABLE\uff1a<\/strong> \u8868\u7c7b\u578b\uff0c\u7528\u4e8e\u5b9a\u4e49\u8868\u53d8\u91cf\u3002<\/li>\n<li><strong>RECORD\uff1a<\/strong> \u8bb0\u5f55\u7c7b\u578b\uff0c\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u5b57\u6bb5\uff0c\u7c7b\u4f3c\u4e8e\u7ed3\u6784\u4f53\u3002<\/li>\n<li><strong>ARRAY\uff1a<\/strong> \u6570\u7ec4\u7c7b\u578b\uff0c\u7528\u4e8e\u5b58\u50a8\u6709\u5e8f\u7684\u6570\u636e\u96c6\u5408\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>LOB \u6570\u636e\u7c7b\u578b\uff1a<\/strong><\/p>\n<ul>\n<li><strong>CLOB\uff1a<\/strong> \u7528\u4e8e\u5b58\u50a8\u5b57\u7b26\u5927\u5bf9\u8c61\u3002<\/li>\n<li><strong>BLOB\uff1a<\/strong> \u7528\u4e8e\u5b58\u50a8\u4e8c\u8fdb\u5236\u5927\u5bf9\u8c61\u3002<\/li>\n<li><strong>NCLOB\uff1a<\/strong> \u7528\u4e8e\u5b58\u50a8\u56fd\u5bb6\u5b57\u7b26\u96c6\u7684\u5927\u5bf9\u8c61\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u5176\u4ed6\u6570\u636e\u7c7b\u578b\uff1a<\/strong><\/p>\n<ul>\n<li><strong>BINARY_INTEGER \/ PLS_INTEGER \/ INTEGER\uff1a<\/strong> \u6574\u6570\u7c7b\u578b\u3002<\/li>\n<li><strong>PLS_NUMERIC\uff1a<\/strong> \u6570\u5b57\u7c7b\u578b\uff0c\u7528\u4e8e\u5b58\u50a8\u6570\u503c\u3002<\/li>\n<li><strong>BOOLEAN\uff1a<\/strong> \u7528\u4e8e\u5b58\u50a8\u903b\u8f91\u503c\uff08<code>TRUE<\/code>\u3001<code>FALSE<\/code> \u6216 <code>NULL<\/code>\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u8fd9\u53ea\u662f PL\/SQL \u4e2d\u4e00\u4e9b\u5e38\u89c1\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5b9e\u9645\u4e0a\u8fd8\u6709\u5176\u4ed6\u66f4\u591a\u7684\u6570\u636e\u7c7b\u578b\u548c\u5b50\u7c7b\u578b\u3002\u6570\u636e\u7c7b\u578b\u7684\u9009\u62e9\u53d6\u51b3\u4e8e\u5b58\u50a8\u7684\u6570\u636e\u548c\u5177\u4f53\u7684\u9700\u6c42\u3002PL\/SQL \u8fd8\u652f\u6301\u7528\u6237\u5b9a\u4e49\u7684\u6570\u636e\u7c7b\u578b\uff08<code>TYPE<\/code>\uff09\u548c\u6e38\u6807\u7c7b\u578b\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Oracle \u7684 PL\/SQL\uff08Procedural Language\/Structured Query  [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[],"class_list":["post-15954","post","type-post","status-publish","format-standard","hentry","category-oracel"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=15954"}],"version-history":[{"count":1,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15954\/revisions"}],"predecessor-version":[{"id":15955,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15954\/revisions\/15955"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=15954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=15954"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=15954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}