{"id":697,"date":"2018-04-08T09:12:16","date_gmt":"2018-04-08T00:12:16","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=697"},"modified":"2018-04-08T17:42:43","modified_gmt":"2018-04-08T08:42:43","slug":"%e3%80%90%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%80%91%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%ae%e8%a8%ad%e8%a8%88","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=697","title":{"rendered":"\u3010\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u8a08\u3011\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb\u306e\u8a2d\u8a08\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u308b\u3002"},"content":{"rendered":"<p>\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb\u306e\u8a2d\u8a08\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<h2>\u5fc5\u8981\u306a\u60c5\u5831<\/h2>\n<p>\u5229\u7528\u3059\u308b\u30a2\u30d7\u30ea\u306b\u3088\u3063\u3066\u3001\u8272\u3005\u5206\u304b\u308c\u308b\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u5fc5\u8981\u305d\u3046\u3068\u601d\u308f\u308c\u308b\u60c5\u5831\u3092\u66f8\u304d\u51fa\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th width=\"120\">\u9805\u76ee<\/th>\n<th>\u30c7\u30fc\u30bf\u578b<\/th>\n<th>\u00a0\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fcID<\/td>\n<td>\u6570\u5024\u578b(INT)<\/td>\n<td>\u00a0\u30ed\u30b0\u30a4\u30f3ID\u3068\u3072\u3068\u307e\u3068\u3081\u306b\u3057\u3066\u3057\u307e\u3046\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fc\u540d<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30ed\u30b0\u30a4\u30f3ID<\/td>\n<td>\u56fa\u5b9a\u9577(VARCHAR)<\/td>\n<td>\u00a0\u30e6\u30cb\u30fc\u30af\u5236\u7d04\u3092\u304b\u3051\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30d1\u30b9\u30ef\u30fc\u30c9<\/td>\n<td>VARCHAR<\/td>\n<td>\u00a0\u5e73\u6587\u3067\u306f\u306a\u304f\u3001\u6697\u53f7\u5316\u95a2\u6570\u7b49\u3067\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u305f\u5024\u3092\u5165\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u4f5c\u6210\u65e5<\/td>\n<td>DATE<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u633f\u5165\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u65e5<\/td>\n<td>DATE<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u66f4\u65b0\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u524a\u9664\u65e5<\/td>\n<td>DATE<\/td>\n<td>\u3053\u3053\u306b\u65e5\u4ed8\u304c\u5165\u3063\u3066\u3044\u308b\u30ec\u30b3\u30fc\u30c9\u306f\u8ad6\u7406\u524a\u9664\u3055\u308c\u305f\u3068\u307f\u306a\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u30e6\u30fc\u30b6\u30fcID\u3068\u30ed\u30b0\u30a4\u30f3ID\u306f\u5225\u306b\u3059\u308b\u306e\u304b\uff1f<\/h3>\n<p>\u8272\u3005\u3042\u308a\u307e\u3059\u304c\u3001\u5206\u3051\u308b\u30e1\u30ea\u30c3\u30c8\u30c7\u30e1\u30ea\u30c3\u30c8\u306f\u4e0b\u8a18\u3067\u3059\u3002<\/p>\n<h4>\u30e1\u30ea\u30c3\u30c8<\/h4>\n<p>\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u5225\u3005\u306b\u3067\u304d\u308b\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3060\u3051\u4fdd\u7ba1\u3057\u305f\u308a\u3067\u304d\u308b\u3002<\/p>\n<div class=\"graybox\">\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u305d\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u9000\u4f1a\u3057\u305f\u5834\u5408\u3067\u3082\u3001\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3060\u3051\u8ad6\u7406\u524a\u9664\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u306f\u7269\u7406\u524a\u9664\u3059\u308b\u7b49\u304c\u3067\u304d\u305f\u308a\u3057\u307e\u3059\u3002<\/div>\n<h4>\u30c7\u30e1\u30ea\u30c3\u30c8<\/h4>\n<p>DB\u8a2d\u8a08\u304c\u308f\u304b\u308a\u305a\u3089\u304f\u306a\u308a\u307e\u3059\u3002\u7279\u306b\u5c0f\u898f\u6a21\u306a\u30b7\u30b9\u30c6\u30e0\u7b49\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u306f\u307e\u3068\u3081\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u3053\u3068\u304c\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002\uff08\u3080\u3057\u308d\u3001\u308f\u304b\u308a\u3084\u3059\u3055\u3092\u91cd\u8996\u3057\u3066\u3053\u308c\u304c\u5927\u534a\u306e\u3088\u3046\u3067\u3059\u3002\uff09<\/p>\n<h2>\u3067\u306f\u3001\u3069\u3046\u8a2d\u8a08\u3059\u308b\u304b\uff1f<\/h2>\n<h3>\u30e6\u30fc\u30b6\u30fcID\u3068\u30ed\u30b0\u30a4\u30f3ID\u3092\u5206\u3051\u306a\u3044\u5834\u5408<\/h3>\n<h5>USER(\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb)<\/h5>\n<table>\n<tbody>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u00a0\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fcID\uff08\u517c\u30ed\u30b0\u30a4\u30f3ID)<\/td>\n<td><strong>\u4e3b\u30ad\u30fc<\/strong>\u306b\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fc\u540d<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30d1\u30b9\u30ef\u30fc\u30c9<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u4f5c\u6210\u65e5<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u633f\u5165\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u65e5<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u66f4\u65b0\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u524a\u9664\u65e5<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #ff0000;\"><strong>\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb<\/strong><\/span>\u3067\u3059\u306d\u3002<\/p>\n<h3>\u30e6\u30fc\u30b6\u30fcID\u3068\u30ed\u30b0\u30a4\u30f3ID\u3092\u5206\u3051\u308b\u5834\u5408<\/h3>\n<h4>1.\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3082\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3082\u4e00\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u3057\u3066\u3057\u307e\u3046\u3002<\/h4>\n<h5>USER(\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb)<\/h5>\n<table>\n<tbody>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u00a0\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fcID<\/td>\n<td><strong>\u4e3b\u30ad\u30fc<\/strong>\u306b\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fc\u540d<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u30ed\u30b0\u30a4\u30f3ID<\/td>\n<td>\u00a0\u30e6\u30cb\u30fc\u30af\u5236\u7d04\u3092\u304b\u3051\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30d1\u30b9\u30ef\u30fc\u30c9<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u4f5c\u6210\u65e5<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u633f\u5165\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u65e5<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u66f4\u65b0\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u524a\u9664\u65e5<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u3064\u306b\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u975e\u5e38\u306b\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u305f\u3060\u3001\u3053\u308c\u3060\u3068\u3001<strong>\u30e6\u30fc\u30b6\u30fc\u30ec\u30b3\u30fc\u30c9\u3092\u7269\u7406\u524a\u9664\u3057\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u3044\u306a\u304f\u306a\u3063\u305f\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3ID\u304c\u4f7f\u3048\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/strong><\/p>\n<h4>2.\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3068\u8a8d\u8a3c\u60c5\u5831\u3092\u5225\u3005\u306b\u30c6\u30fc\u30d6\u30eb\u306b\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u4e3b\u30ad\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/h4>\n<h5>USER(\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb)<\/h5>\n<table width=\"200\">\n<tbody>\n<tr>\n<th width=\"200\">\u9805\u76ee<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fcID<\/td>\n<td><strong>\u4e3b\u30ad\u30fc<\/strong>\u306b\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fc\u540d<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u4f5c\u6210\u65e5<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u633f\u5165\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u65e5<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u66f4\u65b0\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u524a\u9664\u65e5<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>AUTHORIZATION(\u8a8d\u8a3c\u30c6\u30fc\u30d6\u30eb)<\/h5>\n<table>\n<tbody>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30fcID<\/td>\n<td>\u30e6\u30fc\u30b6\u30fcID\u306e\u5916\u90e8\u30ad\u30fc\u306b\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30ed\u30b0\u30a4\u30f3ID<\/td>\n<td><strong>\u4e3b\u30ad\u30fc<\/strong>\u306b\u3059\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30d1\u30b9\u30ef\u30fc\u30c9<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u4f5c\u6210\u65e5<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u633f\u5165\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u65e5<\/td>\n<td>\u30ec\u30b3\u30fc\u30c9\u66f4\u65b0\u65e5\u3092\u5165\u308c\u308b\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u308c\u306a\u3089\u3001<strong>\u8ad6\u7406\u524a\u9664\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fcID\u304c\u3044\u305f\u5834\u5408\u306f\u3001AUTHORIZATION\u30c6\u30fc\u30d6\u30eb\u3060\u3051\u7269\u7406\u524a\u9664\u3059\u308c\u3070\u3001\u30ed\u30b0\u30a4\u30f3ID\u304c\u6b20\u756a\u306b\u306a\u308b\u3053\u3068\u306f\u306a\u304f\u306a\u308a\u307e\u3059\u306d\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb\u306e\u8a2d\u8a08\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002 \u5fc5\u8981\u306a\u60c5\u5831 \u5229\u7528\u3059\u308b\u30a2\u30d7\u30ea\u306b\u3088\u3063\u3066\u3001\u8272\u3005\u5206\u304b\u308c\u308b\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u5fc5\u8981\u305d\u3046\u3068\u601d\u308f\u308c\u308b\u60c5\u5831\u3092\u66f8\u304d\u51fa\u3057\u3066\u307f\u307e\u3059\u3002 \u9805\u76ee \u30c7\u30fc\u30bf\u578b \u00a0\u8aac\u660e \u30e6\u30fc\u30b6\u30fcID \u6570\u5024\u578b(INT) \u00a0\u30ed [&hellip;]","protected":false},"author":1,"featured_media":787,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/697"}],"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=697"}],"version-history":[{"count":37,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/697\/revisions"}],"predecessor-version":[{"id":758,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/697\/revisions\/758"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/787"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}