{"id":4912,"date":"2018-06-22T14:44:41","date_gmt":"2018-06-22T05:44:41","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=4912"},"modified":"2023-05-27T21:42:09","modified_gmt":"2023-05-27T12:42:09","slug":"%e3%80%90oracle%e3%80%91%e3%80%8c%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%80%8d%e3%81%ae%e7%a8%ae%e9%a1%9e","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=4912","title":{"rendered":"\u3010Oracle\u3011\u300c\u30c7\u30fc\u30bf\u578b\u300d\u306e\u7a2e\u985e"},"content":{"rendered":"<h2>\u6587\u5b57\u578b<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30c7\u30fc\u30bf\u578b<\/th>\n<th>\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba<\/th>\n<th>\u30b5\u30a4\u30ba\u6307\u5b9a<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>VARCHAR2<\/td>\n<td>\u6700\u59274000\u30d0\u30a4\u30c8<\/td>\n<td>\u7701\u7565\u4e0d\u53ef<\/td>\n<td>\u53ef\u5909\u9577\u306e\u6587\u5b57\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<tr>\n<td>CHAR<\/td>\n<td>\u6700\u59272000\u30d0\u30a4\u30c8<\/td>\n<td>\u7701\u7565\u53ef\uff08\u305d\u306e\u5834\u5408\u300c\uff11\u300d\u306b\u306a\u308b\u3002<\/td>\n<td>\u56fa\u5b9a\u9577\u306e\u6587\u5b57\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<tr>\n<td>LONG<\/td>\n<td>\u6700\u59272BG<\/td>\n<td><\/td>\n<td>\u53ef\u5909\u9577<\/td>\n<\/tr>\n<tr>\n<td>CLOB<\/td>\n<td>\u6700\u59274BG<\/td>\n<td><\/td>\n<td>\u6587\u5b57\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<tr>\n<td>NCLOB<\/td>\n<td>\u6700\u59274BG<\/td>\n<td><\/td>\n<td>Unicode\u6587\u5b57\u30c7\u30fc\u30bf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>LONG\u578b<\/h3>\n<h4>\u7279\u5fb4<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>VARCHAR2\u3084\u3001CHAR\u578b\u306b\u683c\u7d0d\u3067\u3044\u306a\u3044\u3088\u3046\u306a\u3001\u5927\u304d\u306a\u6587\u5b57\u30c7\u30fc\u30bf\u578b\u3092\u683c\u7d0d\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h4>\u5236\u9650\u4e8b\u9805<\/h4>\n<p>LONG\u578b\u306b\u306f\u3001\u4e0b\u8a18\u306e\u5236\u9650\u304c\u3042\u308b\u306e\u3067\u3001\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\u526f\u554f\u3044\u5408\u308f\u305b\u306e\u969b\u306b\u5236\u7d04\u304c\u3042\u308b\u3002<\/li>\n<li>GROUP BY\u53e5\u3001ORDER BY\u53e5\u306b\u6307\u5b9a\u3067\u304d\u306a\u3044\u3002<\/li>\n<li>\uff11\u3064\u306e\u8868\u306b\u4e00\u3064\u3060\u3051\u3057\u304b\u5b9a\u7fa9\u3067\u304d\u306a\u3044\u3002<\/li>\n<li>\u5236\u7d04\u3092\u5b9a\u7fa9\u3067\u304d\u306a\u3044\u3002<\/li>\n<\/ul>\n<h2>\u6570\u5024\u578b<\/h2>\n<p>\u6570\u5024\u578b\u3067\u4f7f\u3046\u306e\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300cNUMBER\u578b\u300d<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>NUMBER\u578b\u306f\u3001\u4e0b\u8a18\u306e\u69cb\u6587\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\u5217\u540d NUMBER[(\u6700\u5927\u7cbe\u5ea6\uff08\u6574\u6570\u306e\u6841\u6570\uff0b\u5c0f\u6570\u306e\u6841\u6570\uff09,\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570)]<\/pre>\n<table>\n<tbody>\n<tr>\n<th>\u30aa\u30d7\u30b7\u30e7\u30f3<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u6700\u5927\u7cbe\u5ea6\uff08\u6574\u6570\u306e\u6841\u6570\uff0b\u5c0f\u6570\u306e\u6841\u6570\uff09<\/td>\n<td>\u6700\u592738\u6841\u306e\u6570\u5024\u306e\u300c\u6574\u6570\u306e\u6841\u6570\uff0b\u5c0f\u6570\u300d\u306e\u6841\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570<\/td>\n<td>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u30012\u3068\u6307\u5b9a\u3057\u305f\u5834\u5408\u306b\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u304c\u7b2c\u4e8c\u4f4d\u307e\u3067\u3057\u304b\u683c\u7d0d\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u304f\u30012\u6841\u3067\u56db\u6368\u4e94\u5165\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u6ce8\u610f\u70b9<\/h3>\n<p>\u6574\u6570\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u6700\u5927\u7cbe\u5ea6-\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u300d<\/strong><\/span>\u3068\u3057\u305f\u5024\u307e\u3067\u3057\u304b\u683c\u7d0d\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u308c\u3092\u8d85\u3048\u308b\u6841\u6570\u3092\u683c\u7d0d\u3057\u305f\u5834\u5408\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u4f8b<\/h3>\n<p><strong>NUMBER(6,3)\u3068\u3057\u305f\u5834\u5408<\/strong><\/p>\n<p>\u300c456.1234\u300d\u306e\u30c7\u30fc\u30bf\u3067\u3042\u308c\u3070\u3001\u300c456.123\u300d\u3068\u683c\u7d0d\u3055\u308c\u308b\u3002<\/p>\n<p>\u300c4565.1234\u300d\u306e\u30c7\u30fc\u30bf\u3067\u3042\u308c\u3070\u3001\u6574\u6570\u306f3\u6841\u307e\u3067\u3057\u304b\u683c\u7d0d\u3067\u304d\u306a\u3044\u306e\u3067\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002<\/p>\n<h2>\u65e5\u4ed8\u578b<\/h2>\n<p>\u826f\u304f\u4f7f\u3046\u306e\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u300cDATE\u578b\u300d<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u69cb\u6587<\/h3>\n<pre class=\"lang:default decode:true\">\u5217\u540d DATE<\/pre>\n<h3>\u7279\u5fb4<\/h3>\n<ul>\n<li>\u56fa\u5b9a\u95777\u30d0\u30a4\u30c8\u306e\u30c7\u30fc\u30bf<\/li>\n<li>\u4e16\u7d00\u3001\u5e74\u3001\u6708\u3001\u65e5\u3001\u6642\u3001\u5206\u3001\u79d2\u304c\u683c\u7d0d\u3055\u308c\u308b\u3002<\/li>\n<\/ul>\n<h2>\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u578b<\/h2>\n<table>\n<tbody>\n<tr>\n<th width=\"120\">\u30c7\u30fc\u30bf\u578b<\/th>\n<th>\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>RAW\u578b<\/td>\n<td>\u6700\u59272000\u30d0\u30a4\u30c8<\/td>\n<td>\u53ef\u5909\u9577\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3001\u30b5\u30a4\u30ba\u6307\u5b9a\u306e\u7701\u7565\u306f\u4e0d\u53ef\u3002<\/td>\n<\/tr>\n<tr>\n<td>LONG RAW\u578b<\/td>\n<td>\u6700\u59272GB<\/td>\n<td>\u53ef\u5909\u9577\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3001\u5236\u9650\u306fLONG\u578b\u3068\u540c\u3058\u3002<\/td>\n<\/tr>\n<tr>\n<td>BLOB\u578b<\/td>\n<td>\u6700\u59274GB<\/td>\n<td>\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3067\u304d\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>BFILE\u578b<\/td>\n<td>\u6700\u59274GB<\/td>\n<td>\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3067\u304d\u308b\u3002Oracle\u3067\u306f\u306a\u304f\u3001OS\u306b\u30c7\u30fc\u30bf\u304c\u4fdd\u5b58\u3055\u308c\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>ROWID\u578b<\/h2>\n<p>\u5217\u306bROWID\u3092\u683c\u7d0d\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u306e\u5217\u3068\u3057\u3066\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u304c\u3001<span style=\"color: #ff0000;\"><strong>ROWID\u64ec\u4f3c\u5217<\/strong><\/span>\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u6587\u5b57\u578b \u30c7\u30fc\u30bf\u578b \u30c7\u30fc\u30bf\u30b5\u30a4\u30ba \u30b5\u30a4\u30ba\u6307\u5b9a \u8aac\u660e VARCHAR2 \u6700\u59274000\u30d0\u30a4\u30c8 \u7701\u7565\u4e0d\u53ef \u53ef\u5909\u9577\u306e\u6587\u5b57\u30c7\u30fc\u30bf CHAR \u6700\u59272000\u30d0\u30a4\u30c8 \u7701\u7565\u53ef\uff08\u305d\u306e\u5834\u5408\u300c\uff11\u300d\u306b\u306a\u308b\u3002 \u56fa\u5b9a\u9577\u306e\u6587\u5b57\u30c7\u30fc\u30bf LONG \u6700\u59272BG [&hellip;]","protected":false},"author":1,"featured_media":4914,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4912"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4912"}],"version-history":[{"count":14,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4912\/revisions"}],"predecessor-version":[{"id":20387,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4912\/revisions\/20387"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/4914"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4912"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}