{"id":404,"date":"2026-03-05T09:30:22","date_gmt":"2026-03-05T00:30:22","guid":{"rendered":"https:\/\/i-third.org\/blog\/?p=404"},"modified":"2026-03-07T09:09:29","modified_gmt":"2026-03-07T00:09:29","slug":"%e3%80%90it%e5%85%a5%e9%96%80%e3%80%91%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e5%ae%8c%e5%85%a8%e3%82%ac%e3%82%a4%e3%83%89%ef%bd%9cdb%e3%81%ae%e5%9f%ba%e7%a4%8e%e3%81%8b%e3%82%89sql","status":"publish","type":"post","link":"https:\/\/i-third.org\/blog\/?p=404","title":{"rendered":"\u3010IT\u5165\u9580\u3011\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5b8c\u5168\u30ac\u30a4\u30c9\uff5cDB\u306e\u57fa\u790e\u304b\u3089SQL\u30fbNoSQL\u6bd4\u8f03\u30fbJava\u9023\u643a\u307e\u3067\u4e00\u6c17\u306b\u308f\u304b\u308b\uff01"},"content":{"rendered":"<p>\n\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3063\u3066\u3001\u306a\u3093\u3068\u306a\u304f\u805e\u3044\u305f\u3053\u3068\u306f\u3042\u308b\u3051\u3069\u3001\u6b63\u76f4\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u2026\u300d<br \/>\n\u305d\u3093\u306a\u65b9\u3001\u3051\u3063\u3053\u3046\u591a\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u5b9f\u306f\u3001\u3042\u306a\u305f\u304c\u6bce\u65e5\u4f7f\u3063\u3066\u3044\u308b\u30b9\u30de\u30db\u30a2\u30d7\u30ea\u30fb\u30cd\u30c3\u30c8\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30fbSNS\u3001\u305d\u306e\u3059\u3079\u3066\u306e\u88cf\u5074\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u52d5\u3044\u3066\u3044\u307e\u3059\u3002<br \/>\nIT\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3059\u306a\u3089\u3001<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u77e5\u8b58\u306f\u7d76\u5bfe\u306b\u907f\u3051\u3066\u901a\u308c\u307e\u305b\u3093\u3002<\/strong><\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3063\u3066\u4f55\uff1f\u300d\u3068\u3044\u3046\u30bc\u30ed\u306e\u72b6\u614b\u304b\u3089\u3001RDB\u30fbSQL\u30fbNoSQL\u306e\u9055\u3044\u3001\u3055\u3089\u306bJava\u3068\u306e\u9023\u643a\u306e\u4ed5\u7d44\u307f\u307e\u3067\u3092\u3001<strong>\u8eab\u8fd1\u306a\u4f8b\u3048\u3092\u3064\u304b\u3063\u3066\u3084\u3055\u3057\u304f\u30fb\u307e\u308b\u3054\u3068\u89e3\u8aac<\/strong>\u3057\u307e\u3059\uff01<br \/>\n\u6700\u5f8c\u307e\u3067\u8aad\u3081\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5168\u4f53\u50cf\u304c\u30b9\u30c3\u30ad\u30ea\u3064\u304b\u3081\u307e\u3059\u3088\u3002\n<\/p>\n<hr>\n<h2 id=\"toc\">\ud83d\udccb \u76ee\u6b21<\/h2>\n<ul>\n<li><a href=\"#what\">\u305d\u3082\u305d\u3082\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3063\u3066\u4f55\uff1f\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u3068\u306e\u9055\u3044<\/a><\/li>\n<li><a href=\"#dbms\">DBMS\u306e3\u3064\u306e\u7279\u5fb4<\/a><\/li>\n<li><a href=\"#rdb\">RDB\uff08\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff09\u306e\u4ed5\u7d44\u307f<\/a><\/li>\n<li><a href=\"#sql\">SQL\u306e\u57fa\u672c4\u64cd\u4f5c\u3092\u3084\u3055\u3057\u304f\u89e3\u8aac<\/a><\/li>\n<li><a href=\"#history\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4eca\u6614\u8a71\uff5c\u306a\u305c\u4eca\u3082RDB\u30fbSQL\u304c\u4f7f\u308f\u308c\u308b\u306e\u304b\uff1f<\/a><\/li>\n<li><a href=\"#nosql\">RDB vs NoSQL\uff5c\u4f55\u304c\u9055\u3046\u306e\uff1f\u3069\u3046\u4f7f\u3044\u5206\u3051\u308b\uff1f<\/a><\/li>\n<li><a href=\"#jdbc\">Java\u3068DB\u3092\u3064\u306a\u3050\u4ed5\u7d44\u307f\uff5cJDBC\u3068DAO\u3063\u3066\u4f55\uff1f<\/a><\/li>\n<li><a href=\"#summary\">\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<hr>\n<h2 id=\"what\">\ud83d\uddc2\ufe0f \u305d\u3082\u305d\u3082\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3063\u3066\u4f55\uff1f\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u3068\u306e\u9055\u3044<\/h2>\n<p>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306f\u3001<strong>\u30c7\u30fc\u30bf\u3092\u6574\u7406\u3057\u3066\u307e\u3068\u3081\u3066\u7ba1\u7406\u3067\u304d\u308b\u4ed5\u7d44\u307f<\/strong>\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u300cExcel\u3067\u3082\u7ba1\u7406\u3067\u304d\u308b\u3058\u3083\u3093\u300d\u3068\u601d\u3044\u307e\u3059\u3088\u306d\u3002\u3067\u3082\u3001\u30c7\u30fc\u30bf\u304c\u5897\u3048\u3066\u304d\u305f\u308a\u3001\u8907\u6570\u306e\u30a2\u30d7\u30ea\u3084\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u30c7\u30fc\u30bf\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u3067\u306f\u4e00\u6c17\u306b\u9650\u754c\u304c\u6765\u307e\u3059\u3002\n<\/p>\n<table border=\"1\" cellpadding=\"8\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%; margin:16px 0;\">\n<thead style=\"background-color:#f0f0f0;\">\n<tr>\n<th>\u6bd4\u8f03\u9805\u76ee<\/th>\n<th>\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\uff08Excel\u7b49\uff09<\/th>\n<th>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30c7\u30fc\u30bf\u306e\u5834\u6240<\/td>\n<td>\u30a2\u30d7\u30ea\u3054\u3068\u306b\u30d0\u30e9\u30d0\u30e9<\/td>\n<td><strong>\u4e00\u304b\u6240\u306b\u96c6\u7d04<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u540c\u6642\u30a2\u30af\u30bb\u30b9<\/td>\n<td>\u96e3\u3057\u3044\uff08\u4e0a\u66f8\u304d\u4e8b\u6545\u304c\u8d77\u304d\u3084\u3059\u3044\uff09<\/td>\n<td><strong>\u8907\u6570\u4eba\u304c\u540c\u6642\u306b\u5b89\u5168\u306b\u30a2\u30af\u30bb\u30b9\u53ef<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027<\/td>\n<td>\u624b\u52d5\u7ba1\u7406\u3067\u5d29\u308c\u3084\u3059\u3044<\/td>\n<td><strong>\u81ea\u52d5\u3067\u6574\u5408\u6027\u3092\u4fdd\u3064<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u969c\u5bb3\u6642\u306e\u5bfe\u5fdc<\/td>\n<td>\u81ea\u5206\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u5fc5\u8981<\/td>\n<td><strong>\u5fa9\u65e7\u6a5f\u80fd\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\u3072\u3068\u8a00\u3067\u307e\u3068\u3081\u308b\u3068\u3001<strong>\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u3067\u306f\u5bfe\u5fdc\u3057\u304d\u308c\u306a\u3044\u5927\u898f\u6a21\u30fb\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u3092\u3001\u5b89\u5168\u30fb\u52b9\u7387\u7684\u306b\u6271\u3046\u305f\u3081\u306e\u5c02\u7528\u306e\u4ed5\u7d44\u307f\u300d<\/strong>\u3067\u3059\u3002\n<\/p>\n<hr>\n<h2 id=\"dbms\">\ud83d\udd11 DBMS\u306e3\u3064\u306e\u7279\u5fb4<\/h2>\n<p>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u7ba1\u7406\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092<strong>DBMS\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\uff09<\/strong>\u3068\u3044\u3044\u307e\u3059\u3002DBMS\u306b\u306f\u6b21\u306e3\u3064\u306e\u5927\u304d\u306a\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002\n<\/p>\n<table border=\"1\" cellpadding=\"8\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%; margin:16px 0;\">\n<thead style=\"background-color:#f0f0f0;\">\n<tr>\n<th>#<\/th>\n<th>\u7279\u5fb4<\/th>\n<th>\u5185\u5bb9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u2460<\/strong><\/td>\n<td><strong>\u30c7\u30fc\u30bf\u306e\u4e00\u5143\u7ba1\u7406<\/strong><\/td>\n<td>\u8907\u6570\u306e\u30a2\u30d7\u30ea\u304c\u540c\u3058\u30c7\u30fc\u30bf\u3092\u5171\u901a\u5229\u7528\u3067\u304d\u308b\u3002\u91cd\u8907\u306a\u3057\uff01<\/td>\n<\/tr>\n<tr>\n<td><strong>\u2461<\/strong><\/td>\n<td><strong>\u8907\u6570\u30e6\u30fc\u30b6\u30fc\u306e\u540c\u6642\u30a2\u30af\u30bb\u30b9\uff0b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/strong><\/td>\n<td>\u4f55\u4eba\u3082\u304c\u540c\u6642\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3002\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3067\u6a5f\u5bc6\u6027\u3082\u78ba\u4fdd<\/td>\n<\/tr>\n<tr>\n<td><strong>\u2462<\/strong><\/td>\n<td><strong>\u969c\u5bb3\u6642\u306e\u30c7\u30fc\u30bf\u5fa9\u65e7<\/strong><\/td>\n<td>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u969c\u5bb3\u306a\u3069\u3067\u30c7\u30fc\u30bf\u304c\u58ca\u308c\u3066\u3082\u3001\u5fa9\u65e7\u3067\u304d\u308b\u6a5f\u80fd\u3092\u6301\u3064<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h2 id=\"rdb\">\ud83d\udcca RDB\uff08\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff09\u306e\u4ed5\u7d44\u307f<\/h2>\n<p>\n\u73fe\u5728\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3067\u6700\u3082\u5e83\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b\u306e\u304c\u3001<strong>RDB\uff08\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff09<\/strong>\u3067\u3059\u3002<br \/>\n\u30c7\u30fc\u30bf\u3092<strong>\u884c\uff08\u30ec\u30b3\u30fc\u30c9\uff09\u00d7\u5217\uff08\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\u306e\u8868\uff08\u30c6\u30fc\u30d6\u30eb\uff09\u5f62\u5f0f<\/strong>\u3067\u7ba1\u7406\u3057\u307e\u3059\u3002\n<\/p>\n<blockquote style=\"background:#f9f9f9; border-left:4px solid #4a90e2; padding:12px 20px; margin:20px 0;\"><p>\n  \ud83d\udccc <strong>\u30c6\u30fc\u30d6\u30eb\u30fb\u30ec\u30b3\u30fc\u30c9\u30fb\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30a4\u30e1\u30fc\u30b8<\/strong><br \/>\n  \u30c6\u30fc\u30d6\u30eb \uff1d \u540d\u7c3f\u30ea\u30b9\u30c8\u5168\u4f53<br \/>\n  \u30ec\u30b3\u30fc\u30c9 \uff1d 1\u4eba\u5206\u306e\u30c7\u30fc\u30bf\uff08\u884c\uff09<br \/>\n  \u30d5\u30a3\u30fc\u30eb\u30c9 \uff1d \u540d\u524d\u30fb\u5e74\u9f62\u30fb\u90e8\u7f72\u306a\u3069\u306e\u9805\u76ee\uff08\u5217\uff09\n<\/p><\/blockquote>\n<p>\n\u3055\u3089\u306b<strong>\u4e3b\u30ad\u30fc\uff08Primary Key\uff09<\/strong>\u3067\u5404\u30ec\u30b3\u30fc\u30c9\u3092\u4e00\u610f\u306b\u8b58\u5225\u3057\u3001<strong>\u5916\u90e8\u30ad\u30fc\uff08Foreign Key\uff09<\/strong>\u3067\u5225\u306e\u30c6\u30fc\u30d6\u30eb\u3068\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u91cd\u8907\u3092\u306a\u304f\u3057\u306a\u304c\u3089\u8907\u96d1\u306a\u60c5\u5831\u3092\u6574\u7406\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u300c\u30c6\u30fc\u30d6\u30eb\u3092\u5206\u3051\u3066\u30ad\u30fc\u3067\u3064\u306a\u3050\u300d\u8a2d\u8a08\u306e\u3053\u3068\u3092<strong>\u6b63\u898f\u5316<\/strong>\u3068\u3044\u3044\u3001\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u3092\u4fdd\u3064\u57fa\u672c\u7684\u306a\u8003\u3048\u65b9\u3067\u3059\u3002\n<\/p>\n<hr>\n<h2 id=\"sql\">\ud83d\udcac SQL\u306e\u57fa\u672c4\u64cd\u4f5c\u3092\u3084\u3055\u3057\u304f\u89e3\u8aac<\/h2>\n<p>\nRDB\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u8a00\u8a9e\u304c<strong>SQL\uff08Structured Query Language\uff09<\/strong>\u3067\u3059\u3002<br \/>\n\u56fd\u969b\u6a19\u6e96\u3068\u3057\u3066\u898f\u683c\u5316\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001MySQL\u3067\u3082Oracle\u3067\u3082\u540c\u3058\u66f8\u304d\u65b9\u304c\u901a\u7528\u3057\u307e\u3059\u3002\n<\/p>\n<table border=\"1\" cellpadding=\"8\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%; margin:16px 0;\">\n<thead style=\"background-color:#f0f0f0;\">\n<tr>\n<th>SQL\u6587<\/th>\n<th>\u65e5\u672c\u8a9e\u3067\u8a00\u3046\u3068<\/th>\n<th>\u4f7f\u3046\u5834\u9762<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>SELECT<\/strong><\/td>\n<td>\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059<\/td>\n<td>\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u30fb\u5546\u54c1\u691c\u7d22<\/td>\n<\/tr>\n<tr>\n<td><strong>INSERT<\/strong><\/td>\n<td>\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b<\/td>\n<td>\u65b0\u898f\u4f1a\u54e1\u767b\u9332\u30fb\u6ce8\u6587\u767b\u9332<\/td>\n<\/tr>\n<tr>\n<td><strong>UPDATE<\/strong><\/td>\n<td>\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u63db\u3048\u308b<\/td>\n<td>\u4f4f\u6240\u5909\u66f4\u30fb\u5728\u5eab\u6570\u306e\u66f4\u65b0<\/td>\n<\/tr>\n<tr>\n<td><strong>DELETE<\/strong><\/td>\n<td>\u30c7\u30fc\u30bf\u3092\u6d88\u3059<\/td>\n<td>\u9000\u4f1a\u51e6\u7406\u30fb\u8a18\u4e8b\u306e\u524a\u9664<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\u3055\u3089\u306b<strong>WHERE\u53e5\u3067\u6761\u4ef6\u3092\u7d5e\u308a\u8fbc\u307f<\/strong>\u3001<strong>JOIN\u53e5\u3067\u8907\u6570\u30c6\u30fc\u30d6\u30eb\u3092\u7d50\u5408<\/strong>\u3059\u308b\u3053\u3068\u3067\u3001\u696d\u52d9\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u3067\u53d6\u308a\u51fa\u305b\u307e\u3059\u3002\n<\/p>\n<hr>\n<h2 id=\"history\">\ud83d\udcdc \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4eca\u6614\u8a71\uff5c\u306a\u305c\u4eca\u3082RDB\u30fbSQL\u304c\u4f7f\u308f\u308c\u308b\u306e\u304b\uff1f<\/h2>\n<p>\nRDB\u304c\u751f\u307e\u308c\u305f\u306e\u306f1970\u5e74\u4ee3\u3002\u5f53\u6642\u306f\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306b\u30c7\u30fc\u30bf\u304c\u6563\u5728\u3057\u3066\u7ba1\u7406\u3057\u304d\u308c\u306a\u3044\u554f\u984c\u304c\u6df1\u523b\u3067\u3057\u305f\u3002<br \/>\n\u305d\u3053\u306b\u300c\u8868\u5f62\u5f0f\u3067\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b\u300d\u3068\u3044\u3046\u9769\u547d\u7684\u306a\u767a\u60f3\u306eRDB\u304c\u767b\u5834\u3057\u3001\u6a19\u6e96\u8a00\u8a9eSQL\u3068\u3068\u3082\u306b\u4e16\u754c\u4e2d\u306b\u666e\u53ca\u3057\u307e\u3057\u305f\u3002\n<\/p>\n<p>\u305d\u308c\u304b\u308950\u5e74\u4ee5\u4e0a\u305f\u3063\u305f\u4eca\u3082\u4f7f\u308f\u308c\u7d9a\u3051\u308b\u7406\u7531\u306f3\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\ud83c\udfe6 <strong>\u6574\u5408\u6027\u30fb\u4fe1\u983c\u6027\u304c\u5727\u5012\u7684\u306b\u9ad8\u3044<\/strong>\uff1a\u9280\u884c\u30fb\u4f1a\u8a08\u30fb\u7d66\u4e0e\u8a08\u7b97\u306a\u3069\u300c1\u5186\u3082\u30ba\u30ec\u3066\u306f\u3044\u3051\u306a\u3044\u300d\u696d\u52d9\u30b7\u30b9\u30c6\u30e0\u306fRDB\u4e00\u629e<\/li>\n<li>\ud83d\udc68\u200d\ud83d\udcbb <strong>SQL\u304c\u56fd\u969b\u6a19\u6e96\u3067\u4eba\u6750\u304c\u8c4a\u5bcc<\/strong>\uff1a\u4e16\u754c\u4e2d\u306b\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u3044\u3066\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u4f4e\u3044<\/li>\n<li>\ud83c\udfe2 <strong>\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u81a8\u5927\u306a\u6295\u8cc7<\/strong>\uff1a\u4f01\u696d\u306e\u57fa\u5e79\u30b7\u30b9\u30c6\u30e0\u306fRDB\u3067\u69cb\u7bc9\u6e08\u307f\u3067\u3001\u4eca\u3055\u3089\u5168\u9762\u79fb\u884c\u306f\u73fe\u5b9f\u7684\u3067\u306a\u3044<\/li>\n<\/ul>\n<hr>\n<h2 id=\"nosql\">\u2694\ufe0f RDB vs NoSQL\uff5c\u4f55\u304c\u9055\u3046\u306e\uff1f\u3069\u3046\u4f7f\u3044\u5206\u3051\u308b\uff1f<\/h2>\n<p>\n2000\u5e74\u4ee3\u5f8c\u534a\u3001SNS\u3084\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u306e\u6642\u4ee3\u306b\u306a\u308b\u3068RDB\u3060\u3051\u3067\u306f\u5bfe\u5fdc\u3057\u304d\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u5897\u3048\u3001<strong>NoSQL<\/strong>\u304c\u767b\u5834\u3057\u307e\u3057\u305f\u3002\n<\/p>\n<table border=\"1\" cellpadding=\"8\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%; margin:16px 0;\">\n<thead style=\"background-color:#f0f0f0;\">\n<tr>\n<th>\u6bd4\u8f03\u9805\u76ee<\/th>\n<th>RDB<\/th>\n<th>NoSQL<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30c7\u30fc\u30bf\u69cb\u9020<\/td>\n<td>\u8868\u5f62\u5f0f\uff08\u56fa\u5b9a\u30b9\u30ad\u30fc\u30de\uff09<\/td>\n<td>JSON\u30fb\u30ad\u30fc\/\u30d0\u30ea\u30e5\u30fc\u306a\u3069\u67d4\u8edf<\/td>\n<\/tr>\n<tr>\n<td>\u6574\u5408\u6027<\/td>\n<td><strong>\u5f37\u3044\u6574\u5408\u6027\uff08ACID\u4fdd\u8a3c\uff09<\/strong><\/td>\n<td>\u7d50\u679c\u6574\u5408\u6027\uff08\u30b9\u30d4\u30fc\u30c9\u512a\u5148\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u30b9\u30b1\u30fc\u30eb<\/td>\n<td>\u5782\u76f4\u30b9\u30b1\u30fc\u30eb\uff08\u30b5\u30fc\u30d0\u30fc\u5f37\u5316\uff09<\/td>\n<td><strong>\u6c34\u5e73\u30b9\u30b1\u30fc\u30eb\uff08\u53f0\u6570\u3092\u5897\u3084\u3059\uff09<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u5f97\u610f\u306a\u7528\u9014<\/td>\n<td>\u696d\u52d9\u30b7\u30b9\u30c6\u30e0\u30fb\u91d1\u878d\u30fb\u5728\u5eab\u7ba1\u7406<\/td>\n<td>SNS\u30fbIoT\u30fb\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u5206\u6790<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote style=\"background:#fff8e1; border-left:4px solid #f5a623; padding:12px 20px; margin:20px 0;\"><p>\n  \ud83d\udca1 <strong>\u73fe\u5834\u306e\u7d50\u8ad6\uff1a\u300c\u3069\u3061\u3089\u304b\u300d\u3067\u306f\u306a\u304f\u300c\u4f7f\u3044\u5206\u3051\u300d\uff01<\/strong><br \/>\n  \ud83d\udcb3 \u91d1\u878d\u30fb\u4f1a\u8a08 \u2192 RDB\uff08\u6574\u5408\u6027\u6700\u512a\u5148\uff09<br \/>\n  \ud83d\udcf1 SNS\u30fb\u30ed\u30b0\u7ba1\u7406 \u2192 NoSQL\uff08\u30b9\u30d4\u30fc\u30c9\u30fb\u30b9\u30b1\u30fc\u30eb\u512a\u5148\uff09<br \/>\n  \ud83d\uded2 EC\u30b5\u30a4\u30c8 \u2192 \u4e21\u65b9\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\uff01\n<\/p><\/blockquote>\n<hr>\n<h2 id=\"jdbc\">\u2615 Java\u3068DB\u3092\u3064\u306a\u3050\u4ed5\u7d44\u307f\uff5cJDBC\u3068DAO\u3063\u3066\u4f55\uff1f<\/h2>\n<p>\nJava\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u3068\u304d\u306b\u4f7f\u3046\u306e\u304c<strong>JDBC\uff08Java Database Connectivity\uff09<\/strong>\u3067\u3059\u3002<br \/>\nJDBC\u306fJava\u3068DB\u306e\u9593\u306b\u5165\u308b\u300c\u901a\u8a33\u5f79\u300d\u306e\u3088\u3046\u306a\u5b58\u5728\u3067\u3001\u3069\u306eDBMS\u3067\u3082\u540c\u3058Java\u30b3\u30fc\u30c9\u3067\u64cd\u4f5c\u3067\u304d\u308b\u74b0\u5883\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\n<\/p>\n<p><strong>\ud83d\udd17 DB\u63a5\u7d9a\u306e\u6d41\u308c\uff085\u30b9\u30c6\u30c3\u30d7\uff09<\/strong><\/p>\n<ol>\n<li>DB\u306b\u63a5\u7d9a\u3059\u308b\uff08\u96fb\u8a71\u3092\u304b\u3051\u308b\uff09<\/li>\n<li>SQL\u6587\u3092\u4f5c\u308b\uff08\u8a71\u3059\u5185\u5bb9\u3092\u6c7a\u3081\u308b\uff09<\/li>\n<li>SQL\u3092\u5b9f\u884c\u3059\u308b\uff08\u8a71\u3059\uff09<\/li>\n<li>\u7d50\u679c\u3092\u53d7\u3051\u53d6\u308b\uff08\u7b54\u3048\u3092\u805e\u304f\uff09<\/li>\n<li>\u63a5\u7d9a\u3092\u9589\u3058\u308b\uff08\u96fb\u8a71\u3092\u5207\u308b\uff09\u2190 <strong>\u5fc5\u305a\u9589\u3058\u308b\u3053\u3068\uff01<\/strong><\/li>\n<\/ol>\n<p>\n\u3055\u3089\u306b\u73fe\u5834\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u304c<strong>DAO\uff08Data Access Object\uff09<\/strong>\u3067\u3059\u3002<br \/>\n\u300c\u696d\u52d9\u51e6\u7406\uff08\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\uff09\u300d\u3068\u300cDB\u64cd\u4f5c\uff08\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u51e6\u7406\uff09\u300d\u3092\u5206\u96e2\u3059\u308b\u3053\u3068\u3067\u3001\u5c06\u6765MySQL\u304b\u3089PostgreSQL\u306b\u5207\u308a\u66ff\u3048\u3066\u3082<strong>\u696d\u52d9\u30ed\u30b8\u30c3\u30af\u3092\u4e00\u5207\u5909\u3048\u305a\u306b\u6e08\u3080<\/strong>\u3068\u3044\u3046\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306a\u3069\u306e\u653b\u6483\u3092\u9632\u3050\u305f\u3081\u306b<strong>PreparedStatement<\/strong>\u3092\u4f7f\u3046\u3053\u3068\u304c\u73fe\u5834\u306e\u9244\u5247\u3067\u3059\u3002\n<\/p>\n<hr>\n<h2 id=\"summary\">\ud83d\udcdd \u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u5b66\u3093\u3060\u3053\u3068\u3092\u4e00\u6c17\u306b\u632f\u308a\u8fd4\u308a\u307e\u3057\u3087\u3046\uff01<\/p>\n<table border=\"1\" cellpadding=\"8\" cellspacing=\"0\" style=\"border-collapse:collapse; width:100%; margin:16px 0;\">\n<thead style=\"background-color:#f0f0f0;\">\n<tr>\n<th>\u30c6\u30fc\u30de<\/th>\n<th>\u3072\u3068\u3053\u3068\u307e\u3068\u3081<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306f<\/strong><\/td>\n<td>\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u30fb\u52b9\u7387\u7684\u306b\u4e00\u5143\u7ba1\u7406\u3059\u308b\u4ed5\u7d44\u307f<\/td>\n<\/tr>\n<tr>\n<td><strong>DBMS\u306e\u7279\u5fb4<\/strong><\/td>\n<td>\u4e00\u5143\u7ba1\u7406\u30fb\u540c\u6642\u30a2\u30af\u30bb\u30b9\u30fb\u969c\u5bb3\u5fa9\u65e7\u306e3\u672c\u67f1<\/td>\n<\/tr>\n<tr>\n<td><strong>RDB\u306e\u4ed5\u7d44\u307f<\/strong><\/td>\n<td>\u8868\u5f62\u5f0f\uff0b\u4e3b\u30ad\u30fc\u30fb\u5916\u90e8\u30ad\u30fc\u3067\u30c7\u30fc\u30bf\u3092\u6574\u7406\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td><strong>SQL\u306e\u57fa\u672c<\/strong><\/td>\n<td>SELECT\u30fbINSERT\u30fbUPDATE\u30fbDELETE\u306e4\u64cd\u4f5c\u304c\u57fa\u672c<\/td>\n<\/tr>\n<tr>\n<td><strong>RDB vs NoSQL<\/strong><\/td>\n<td>\u6574\u5408\u6027\u91cd\u8996\u306a\u3089RDB\u30fb\u30b9\u30b1\u30fc\u30eb\u91cd\u8996\u306a\u3089NoSQL\u30fb\u4f7f\u3044\u5206\u3051\u304c\u6b63\u89e3<\/td>\n<\/tr>\n<tr>\n<td><strong>JDBC\u30fbDAO<\/strong><\/td>\n<td>JDBC\u306fJava\u3068DB\u306e\u901a\u8a33\u5f79\u30fbDAO\u306f\u696d\u52d9\u3068DB\u64cd\u4f5c\u3092\u5206\u96e2\u3059\u308b\u8a2d\u8a08<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u300c\u96e3\u3057\u3044\u6280\u8853\u300d\u3068\u3044\u3046\u3088\u308a\u3001<strong>\u300c\u30c7\u30fc\u30bf\u306e\u6574\u7406\u6574\u9813\u8853\u300d<\/strong>\u3067\u3059\u3002<br \/>\n\u307e\u305a\u306fSQL\u3067\u5b9f\u969b\u306b\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u30fb\u8ffd\u52a0\u3057\u3066\u307f\u308b\u4f53\u9a13\u304c\u7406\u89e3\u306e\u8fd1\u9053\uff01<br \/>\n\u300cSELECT * FROM \u81ea\u5206\u306e\u8208\u5473\u300d\u3067\u3001\u305c\u3072\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u63a2\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044 \ud83d\ude04\ud83d\ude80<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3063\u3066\u3001\u306a\u3093\u3068\u306a\u304f\u805e\u3044\u305f\u3053\u3068\u306f\u3042\u308b\u3051\u3069\u3001\u6b63\u76f4\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u2026\u300d \u305d\u3093\u306a\u65b9\u3001\u3051\u3063\u3053\u3046\u591a\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f \u5b9f\u306f\u3001\u3042\u306a\u305f\u304c\u6bce\u65e5\u4f7f\u3063\u3066\u3044\u308b\u30b9\u30de\u30db\u30a2\u30d7\u30ea\u30fb\u30cd\u30c3\u30c8\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30fbSNS\u3001\u305d\u306e\u3059\u3079\u3066\u306e\u88cf\u5074\u3067\u30c7\u30fc\u30bf\u30d9\u30fc&hellip;<\/p>\n","protected":false},"author":1,"featured_media":408,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-404","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-7"],"_links":{"self":[{"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=404"}],"version-history":[{"count":1,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/404\/revisions"}],"predecessor-version":[{"id":405,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/404\/revisions\/405"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/408"}],"wp:attachment":[{"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}