{"id":6073,"date":"2025-09-28T00:53:07","date_gmt":"2025-09-27T15:53:07","guid":{"rendered":"https:\/\/sky-peace.net\/?p=6073"},"modified":"2025-09-28T00:53:07","modified_gmt":"2025-09-27T15:53:07","slug":"sql-json","status":"publish","type":"post","link":"https:\/\/sky-peace.net\/certified\/sql-json\/","title":{"rendered":"SQL\u3067\u306eJSON\u51e6\u7406\u3092\u5b8c\u5168\u653b\u7565\uff1aJSON_TABLE\u3068OPENJSON\u306e\u4f7f\u3044\u65b9\u304b\u3089\u30cd\u30b9\u30c8\u914d\u5217\u5c55\u958b\u307e\u3067"},"content":{"rendered":"<p>Web API\u304b\u3089\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30b0\u306a\u3069\u3001\u73fe\u4ee3\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306b\u304a\u3044\u3066JSON\uff08JavaScript Object Notation\uff09\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u306f\u907f\u3051\u3066\u901a\u308c\u307e\u305b\u3093\u3002\u67d4\u8edf\u6027\u304c\u9ad8\u304f\u4fbf\u5229\u306a\u4e00\u65b9\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u6163\u308c\u89aa\u3057\u3093\u3060\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u3001\u3053\u306e\u300c\u30b9\u30ad\u30fc\u30de\u30ec\u30b9\u306a\u975e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u300d\u3092\u3069\u306e\u3088\u3046\u306bSQL\u3067\u96c6\u8a08\u30fb\u5206\u6790\u3059\u308b\u304b\u306f\u5927\u304d\u306a\u8ab2\u984c\u3067\u3059\u3002\u7279\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u8a66\u9a13\u3084\u5fdc\u7528\u60c5\u5831\u6280\u8853\u8005\u8a66\u9a13\u306e\u5348\u5f8c\u554f\u984c\u3067\u306f\u3001\u8907\u96d1\u306aJSON\u30c7\u30fc\u30bf\u3092\u6b63\u78ba\u306b\u30c6\u30fc\u30d6\u30eb\u5f62\u5f0f\u3078\u5909\u63db\u3059\u308b\u80fd\u529b\u304c\u554f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u300c<code>JSON_TABLE<\/code>\u3068<code>OPENJSON<\/code>\u3001\u540d\u524d\u306f\u4f3c\u3066\u3044\u308b\u3051\u308c\u3069\u3001\u3069\u3061\u3089\u3092\u3044\u3064\u4f7f\u3048\u3070\u3044\u3044\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u300d<br \/>\n\u300c\u914d\u5217\u306e\u4e2d\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5165\u308c\u5b50\u306b\u306a\u3063\u305f\u3001\u6df1\u3044\u968e\u5c64\u306e\u30c7\u30fc\u30bf\u3092\u3069\u3046\u3084\u3063\u3066\u884c\u3068\u5217\u306b\u5c55\u958b\u3059\u308c\u3070\u2026\uff1f\u300d<\/p>\n<p>\u3082\u3057\u3001\u3042\u306a\u305f\u304c\u3053\u306e\u3088\u3046\u306a\u7591\u554f\u3092\u62b1\u3048\u3066\u3044\u308b\u306a\u3089\u3001\u3053\u306e\u8a18\u4e8b\u304c\u305d\u306e\u89e3\u6c7a\u7b56\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Oracle Database\u3001MySQL\u3001SQL Server\u3068\u3044\u3063\u305f\u4e3b\u8981\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308bJSON\u30af\u30a8\u30ea\u95a2\u6570\u3092\u5fb9\u5e95\u89e3\u8aac\u3002\u7279\u306b\u3001JSON\u3092\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u306a\u30c6\u30fc\u30d6\u30eb\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u5f37\u529b\u306a\u6b66\u5668\u3068\u306a\u308b<code>JSON_TABLE<\/code>\uff08Oracle, MySQL\uff09\u3068<code>OPENJSON<\/code>\uff08SQL Server\uff09\u306b\u3064\u3044\u3066\u3001\u305d\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u304b\u3089\u5b9f\u8df5\u7684\u306a\u6d3b\u7528\u30b7\u30ca\u30ea\u30aa\u307e\u3067\u3092\u3001\u8c4a\u5bcc\u306a\u56f3\u89e3\u3068\u30b3\u30fc\u30c9\u4f8b\u3092\u4ea4\u3048\u3066\u4f53\u7cfb\u7684\u306b\u5b66\u3073\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3092\u8aad\u307f\u7d42\u3048\u308b\u9803\u306b\u306f\u3001\u3042\u306a\u305f\u306f\u975e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u3067\u3042\u308bJSON\u3092\u81ea\u5728\u306bSQL\u3067\u64cd\u308a\u3001\u5fc5\u8981\u306a\u60c5\u5831\u3092\u7684\u78ba\u306b\u62bd\u51fa\u30fb\u5206\u6790\u3059\u308b\u30b9\u30ad\u30eb\u3092\u8eab\u306b\u3064\u3051\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>SQL\u3067JSON\u3092\u6271\u3046\u6642\u4ee3\u3078\u2502\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u304a\u3051\u308b\u975e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u306e\u91cd\u8981\u6027<\/h2>\n<p>\u304b\u3064\u3066\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff08RDB\uff09\u304c\u6271\u3046\u30c7\u30fc\u30bf\u306f\u3001\u884c\u3068\u5217\u306b\u3088\u3063\u3066\u53b3\u5bc6\u306b\u69cb\u9020\u304c\u5b9a\u7fa9\u3055\u308c\u305f\u300c\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u300d\u304c\u4e2d\u5fc3\u3067\u3057\u305f\u3002\u3057\u304b\u3057\u3001Web API\u3084\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u304c\u666e\u53ca\u3057\u305f\u73fe\u4ee3\u3067\u306f\u3001\u3088\u308a\u67d4\u8edf\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u6301\u3064JSON\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u9593\u3067\u30c7\u30fc\u30bf\u3092\u4ea4\u63db\u3059\u308b\u305f\u3081\u306e\u6a19\u6e96\u5f62\u5f0f\uff08\u30c7\u30d5\u30a1\u30af\u30c8\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\uff09\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306aJSON\u3067\u53d7\u3051\u53d6\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre><code>{\n  \"userId\": \"U001\",\n  \"name\": \"Taro Yamada\",\n  \"registeredDate\": \"2023-10-27\",\n  \"interests\": [\"SQL\", \"Python\", \"Cloud\"]\n}\n<\/code><\/pre>\n<p>\u3053\u306e\u30c7\u30fc\u30bf\u3092RDB\u306b\u683c\u7d0d\u3059\u308b\u5834\u5408\u3001\u5f93\u6765\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u3067JSON\u3092\u89e3\u6790\uff08\u30d1\u30fc\u30b9\uff09\u3057\u3001\u300cuserId\u300d\u300cname\u300d\u3068\u3044\u3063\u305f\u5404\u8981\u7d20\u3092\u30c6\u30fc\u30d6\u30eb\u306e\u5404\u5217\u306b\u5206\u89e3\u3057\u3066INSERT\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<\/p>\n<p>\u3053\u306e\u6d41\u308c\u3092\u53d7\u3051\u3001Oracle Database\u3001MySQL\u3001SQL Server\u3001PostgreSQL\u3068\u3044\u3063\u305f\u4e3b\u8981\u306aRDB\u306f\u3001JSON\u30c7\u30fc\u30bf\u578b\u3084JSON\u3092\u76f4\u63a5\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u5c02\u7528\u95a2\u6570\u3092\u6a19\u6e96\u3067\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001JSON\u30c7\u30fc\u30bf\u3092\u5206\u89e3\u305b\u305a\u306b\u305d\u306e\u307e\u307e\u30c6\u30fc\u30d6\u30eb\u306e\u4e00\u3064\u306e\u30ab\u30e9\u30e0\u306b\u683c\u7d0d\u3057\u3001SQL\u3092\u7528\u3044\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u4e0a\u3067\u76f4\u63a5\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3001\u62bd\u51fa\u3001\u96c6\u8a08\u3068\u3044\u3063\u305f\u51e6\u7406\u3092\u9ad8\u901f\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u6280\u8853\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u306e\u51e6\u7406\u8ca0\u8377\u3092\u8efd\u6e1b\u3057\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3092\u4fdd\u3061\u3084\u3059\u304f\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u8a66\u9a13\u306e\u3088\u3046\u306a\u9ad8\u5ea6\u306a\u8cc7\u683c\u8a66\u9a13\u306b\u304a\u3044\u3066\u3082\u3001\u73fe\u4ee3\u7684\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u80fd\u529b\u3092\u6e2c\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30c6\u30fc\u30de\u3068\u3057\u3066\u6271\u308f\u308c\u3066\u3044\u307e\u3059\u3002SQL\u3067JSON\u3092\u5236\u3059\u308b\u3053\u3068\u306f\u3001\u3082\u306f\u3084\u5168\u3066\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u5fc5\u9808\u306e\u30b9\u30ad\u30eb\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>JSON\u30c7\u30fc\u30bf\u3078\u306e\u7b2c\u4e00\u6b69\u2502JSON\u30d1\u30b9\u5f0f\u3092\u4f7f\u3063\u305f\u5024\u306e\u62bd\u51fa\uff08JSON_VALUE\/JSON_QUERY\uff09<\/h2>\n<p>JSON\u30c7\u30fc\u30bf\u3092SQL\u3067\u672c\u683c\u7684\u306b\u6271\u3046\u524d\u306b\u3001\u307e\u305a\u300cJSON\u5185\u306e\u3069\u306e\u30c7\u30fc\u30bf\u304c\u6b32\u3057\u3044\u304b\u300d\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4f1d\u3048\u308b\u305f\u3081\u306e\u5171\u901a\u8a00\u8a9e\u3001\u300c<strong>JSON\u30d1\u30b9\u5f0f<\/strong>\u300d\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001JSON\u306e\u968e\u5c64\u69cb\u9020\u3092\u8fbf\u3063\u3066\u76ee\u7684\u306e\u30c7\u30fc\u30bf\u306b\u5230\u9054\u3059\u308b\u305f\u3081\u306e\u4f4f\u6240\uff08\u30d1\u30b9\uff09\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<ul>\n<li><code>$<\/code>\uff1a\u30eb\u30fc\u30c8\uff08\u6700\u4e0a\u4f4d\uff09\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u307e\u305f\u306f\u914d\u5217\u3092\u793a\u3057\u307e\u3059\u3002<\/li>\n<li><code>.<\/code>\uff08\u30c9\u30c3\u30c8\uff09\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ad\u30fc\uff08\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li><code>[n]<\/code>\uff1a\u914d\u5217\u306en\u756a\u76ee\u306e\u8981\u7d20\u3092\u6307\u5b9a\u3057\u307e\u3059\uff080\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\uff09\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u3048\u3070\u3001<code>{\"user\": {\"name\": \"Taro\"}}<\/code> \u3068\u3044\u3046JSON\u30c7\u30fc\u30bf\u304b\u3089 &#8220;Taro&#8221; \u3068\u3044\u3046\u5024\u3092\u53d6\u5f97\u3059\u308b\u30d1\u30b9\u5f0f\u306f <code>$.user.name<\/code> \u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d1\u30b9\u5f0f\u3092\u5229\u7528\u3057\u3066\u5024\u3092\u62bd\u51fa\u3059\u308b\u6700\u3082\u57fa\u672c\u7684\u306a\u95a2\u6570\u304c <code>JSON_VALUE<\/code> \u3068 <code>JSON_QUERY<\/code> \u3067\u3059\u3002<\/p>\n<h3>JSON_VALUE\uff1a\u5358\u4e00\u306e\u5024\uff08\u30b9\u30ab\u30e9\u30fc\u5024\uff09\u3092\u53d6\u308a\u51fa\u3059<\/h3>\n<p><code>JSON_VALUE<\/code> \u306f\u3001\u30d1\u30b9\u5f0f\u3067\u6307\u5b9a\u3057\u305f\u5834\u6240\u304b\u3089<strong>\u5358\u4e00\u306e\u5024\uff08\u30b9\u30ab\u30e9\u30fc\u5024\uff1a\u6587\u5b57\u5217\u3001\u6570\u5024\u3001true\/false\u306a\u3069\uff09<\/strong>\u3092\u4e00\u3064\u3060\u3051\u62bd\u51fa\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<\/p>\n<p><strong>\u69cb\u6587\u4f8b (MySQL\/SQL Server\/Oracle):<\/strong><\/p>\n<pre><code>JSON_VALUE(json_column, '$.path')\n<\/code><\/pre>\n<p><strong>\u4f7f\u7528\u4f8b:<\/strong><br \/>\n\u4ee5\u4e0b\u306e\u30c7\u30fc\u30bf\u304c <code>users<\/code> \u30c6\u30fc\u30d6\u30eb\u306e <code>json_data<\/code> \u30ab\u30e9\u30e0\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre><code>{\n  \"userId\": \"U001\",\n  \"name\": \"Taro Yamada\",\n  \"age\": 30,\n  \"isPremium\": true,\n  \"interests\": [\"SQL\", \"Python\", \"Cloud\"]\n}\n<\/code><\/pre>\n<p>\u3053\u3053\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306bSQL\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<pre><code>SELECT\n  JSON_VALUE(json_data, '$.name') AS user_name\nFROM\n  users;\n<\/code><\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c:<\/strong><\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>user_name<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Taro Yamada<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u91cd\u8981<\/strong>: <code>JSON_VALUE<\/code> \u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3084\u914d\u5217\u305d\u306e\u3082\u306e\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<code>$.interests<\/code> \u306e\u3088\u3046\u306a\u914d\u5217\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u30a8\u30e9\u30fc\u307e\u305f\u306fNULL\u304c\u8fd4\u308a\u307e\u3059\u3002<\/p>\n<h3>JSON_QUERY\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3084\u914d\u5217\u3092\u53d6\u308a\u51fa\u3059<\/h3>\n<p>\u4e00\u65b9\u3001<code>JSON_QUERY<\/code> \u306f\u3001\u30d1\u30b9\u5f0f\u3067\u6307\u5b9a\u3057\u305f\u5834\u6240\u304b\u3089<strong>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u307e\u305f\u306f\u914d\u5217<\/strong>\u3092\u3001JSON\u5f62\u5f0f\u306e\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u62bd\u51fa\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<\/p>\n<p><strong>\u69cb\u6587\u4f8b (MySQL\/SQL Server\/Oracle):<\/strong><\/p>\n<pre><code>JSON_QUERY(json_column, '$.path')\n<\/code><\/pre>\n<p><strong>\u4f7f\u7528\u4f8b:<\/strong><br \/>\n\u540c\u3058\u30c7\u30fc\u30bf\u304b\u3089\u3001\u8208\u5473\uff08interests\uff09\u306e\u914d\u5217\u5168\u4f53\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>SELECT\n  JSON_QUERY(json_data, '$.interests') AS user_interests\nFROM\n  users;\n<\/code><\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c:<\/strong><\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>user_interests<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>[&#8220;SQL&#8221;, &#8220;Python&#8221;, &#8220;Cloud&#8221;]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001<code>JSON_VALUE<\/code> \u3068 <code>JSON_QUERY<\/code> \u3092\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u3067\u3001JSON\u30c7\u30fc\u30bf\u304b\u3089\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u3067\u60c5\u5831\u3092\u629c\u304d\u51fa\u3059\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>\u95a2\u6570<\/th>\n<th>\u76ee\u7684<\/th>\n<th>\u62bd\u51fa\u5bfe\u8c61<\/th>\n<th>\u623b\u308a\u5024\u306e\u4f8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>JSON_VALUE<\/code><\/td>\n<td><strong>\u5358\u4e00\u306e\u5024<\/strong> \u3092\u62bd\u51fa<\/td>\n<td>\u6587\u5b57\u5217, \u6570\u5024, \u771f\u507d\u5024<\/td>\n<td><code>'Taro Yamada'<\/code>, <code>30<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>JSON_QUERY<\/code><\/td>\n<td><strong>\u69cb\u9020<\/strong> \u3092\u62bd\u51fa<\/td>\n<td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8, \u914d\u5217<\/td>\n<td><code>'{\"key\": \"value\"}'<\/code>, <code>'[\"a\", \"b\"]'<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u57fa\u672c\u3092\u3057\u3063\u304b\u308a\u62bc\u3055\u3048\u308b\u3053\u3068\u304c\u3001\u6b21\u304b\u3089\u89e3\u8aac\u3059\u308b <code>JSON_TABLE<\/code> \u3084 <code>OPENJSON<\/code> \u3068\u3044\u3063\u305f\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u30c6\u30fc\u30d6\u30eb\u5909\u63db\u51e6\u7406\u3092\u7406\u89e3\u3059\u308b\u9375\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u672c\u547d\u767b\u5834\uff1aJSON_TABLE\u95a2\u6570\u3067\u884c\u3068\u5217\u306b\u4e00\u62ec\u5909\u63db\u3059\u308b (Oracle\/MySQL)<\/h2>\n<p><code>JSON_VALUE<\/code> \u3092\u4f7f\u3048\u3070\u7279\u5b9a\u306e\u5024\u3092\u53d6\u308a\u51fa\u305b\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3082\u3057JSON\u914d\u5217\u306e\u4e2d\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c100\u500b\u3042\u3063\u305f\u5834\u5408\u3001100\u500b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u305d\u308c\u305e\u308c <code>name<\/code> \u3092\u53d6\u308a\u51fa\u3059\u3001\u3068\u3044\u3063\u305f\u51e6\u7406\u306f\u975e\u5e38\u306b\u9762\u5012\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u300cJSON\u914d\u5217\u3092\u307e\u3068\u3081\u3066\u884c\u3068\u5217\u306b\u5c55\u958b\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u30cb\u30fc\u30ba\u306b\u5fdc\u3048\u308b\u306e\u304c <code>JSON_TABLE<\/code> \u95a2\u6570\u3067\u3059\u3002<\/p>\n<p><code>JSON_TABLE<\/code> \u306f\u3001JSON\u914d\u5217\u306e\u5404\u8981\u7d20\u3092<strong>\u884c<\/strong>\u306b\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5185\u306e\u5404\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092<strong>\u5217<\/strong>\u306b\u5909\u63db\u3057\u3001\u4eee\u60f3\u7684\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u751f\u6210\u3059\u308b\u5f37\u529b\u306a\u6a5f\u80fd\u3067\u3059\u3002\u4e3b\u306bOracle Database\u3068MySQL 8.0\u4ee5\u964d\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/p>\n<h3>JSON_TABLE\u306e\u57fa\u672c\u69cb\u6587<\/h3>\n<p>\u5c11\u3057\u8907\u96d1\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u69cb\u9020\u3092\u5206\u89e3\u3059\u308c\u3070\u7406\u89e3\u306f\u96e3\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre><code>JSON_TABLE(\n  json_data,          -- \u5bfe\u8c61\u306eJSON\u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u308b\u5217\n  '$.array_path[*]'   -- \u2460\u884c\u306b\u5c55\u958b\u3057\u305f\u3044\u914d\u5217\u306e\u30d1\u30b9\n  COLUMNS (           -- \u2461\u5217\u306e\u5b9a\u7fa9\n    column_name1 datatype PATH '$.key1',\n    column_name2 datatype PATH '$.key2'\n    -- \u5fc5\u8981\u306a\u5206\u3060\u3051\u5217\u3092\u5b9a\u7fa9\n  )\n)\n<\/code><\/pre>\n<ul>\n<li><strong>\u2460 \u884c\u306b\u5c55\u958b\u3059\u308b\u914d\u5217\u306e\u6307\u5b9a<\/strong>: <code>'$'<\/code> \u304b\u3089\u59cb\u307e\u308b\u30d1\u30b9\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u884c\u306b\u3057\u305f\u3044JSON\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>[*]<\/code> \u306f\u300c\u914d\u5217\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u300d\u3092\u610f\u5473\u3059\u308b\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3067\u3059\u3002<\/li>\n<li><strong>\u2461 \u5217\u306e\u5b9a\u7fa9 (COLUMNS\u53e5)<\/strong>: <code>COLUMNS<\/code>\u53e5\u306e\u4e2d\u3067\u3001\u751f\u6210\u3057\u305f\u3044\u30c6\u30fc\u30d6\u30eb\u306e\u5217\u540d\u3001\u30c7\u30fc\u30bf\u578b\u3001\u305d\u3057\u3066JSON\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5185\u306e\u3069\u306e\u30ad\u30fc\u304b\u3089\u5024\u3092\u53d6\u5f97\u3059\u308b\u304b\uff08<code>PATH '$.key'<\/code>\uff09\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\u4f7f\u7528\u4f8b\uff1a\u5546\u54c1\u30ea\u30b9\u30c8JSON\u3092\u30c6\u30fc\u30d6\u30eb\u5316\u3059\u308b<\/h3>\n<p>EC\u30b5\u30a4\u30c8\u306e\u6ce8\u6587\u660e\u7d30\u3092\u8868\u3059\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aJSON\u30c7\u30fc\u30bf\u3092\u6301\u3064 <code>orders<\/code> \u30c6\u30fc\u30d6\u30eb\u3092\u8003\u3048\u307e\u3059\u3002<\/p>\n<p><strong>orders \u30c6\u30fc\u30d6\u30eb<\/strong><\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>order_id<\/th>\n<th>items_json<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>101<\/td>\n<td><code>[{\"productId\": \"A-01\", \"price\": 1500, \"qty\": 1}, {\"productId\": \"B-02\", \"price\": 300, \"qty\": 5}]<\/code><\/td>\n<\/tr>\n<tr>\n<td>102<\/td>\n<td><code>[{\"productId\": \"C-03\", \"price\": 2000, \"qty\": 2}]<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e <code>items_json<\/code> \u5217\u304b\u3089\u3001\u6ce8\u6587ID\u3054\u3068\u306b\u884c\u3092\u5206\u5272\u3057\u305f\u5546\u54c1\u660e\u7d30\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>SELECT\n  o.order_id,\n  jt.product_id,\n  jt.price,\n  jt.quantity\nFROM\n  orders o, -- \u5143\u306e\u30c6\u30fc\u30d6\u30eb\n  JSON_TABLE(\n    o.items_json,\n    '$[*]' -- \u30eb\u30fc\u30c8\u304c\u914d\u5217\u306a\u306e\u3067\u5358\u7d14\u306b '$[*]'\n    COLUMNS (\n      product_id VARCHAR(10) PATH '$.productId',\n      price      INT         PATH '$.price',\n      quantity   INT         PATH '$.qty'\n    )\n  ) AS jt; -- JSON_TABLE\u306e\u7d50\u679c\u306b\u5225\u540d(jt)\u3092\u4ed8\u3051\u308b\n<\/code><\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c:<\/strong><\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>order_id<\/th>\n<th>product_id<\/th>\n<th>price<\/th>\n<th>quantity<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>101<\/td>\n<td>A-01<\/td>\n<td>1500<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>101<\/td>\n<td>B-02<\/td>\n<td>300<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>102<\/td>\n<td>C-03<\/td>\n<td>2000<\/td>\n<td>2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001<code>JSON_TABLE<\/code> \u3092 <code>FROM<\/code> \u53e5\u3067\u5143\u306e\u30c6\u30fc\u30d6\u30eb\u3068\u7d50\u5408\uff08<code>,<\/code> \u3084 <code>CROSS JOIN<\/code> \u3092\u4f7f\u7528\uff09\u3059\u308b\u3053\u3068\u3067\u3001\u307e\u308b\u3067\u6700\u521d\u304b\u3089\u6b63\u898f\u5316\u3055\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u304c\u5b58\u5728\u3057\u305f\u304b\u306e\u3088\u3046\u306b\u3001JSON\u30c7\u30fc\u30bf\u3092SQL\u3067\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5546\u54c1\u3054\u3068\u306e\u58f2\u4e0a\u96c6\u8a08\u3084\u5728\u5eab\u5206\u6790\u306a\u3069\u304c\u683c\u6bb5\u306b\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>SQL Server\u306e\u5f37\u529b\u306a\u6b66\u5668\uff1aOPENJSON\u95a2\u6570\u306b\u3088\u308b\u30c6\u30fc\u30d6\u30eb\u5c55\u958b<\/h2>\n<p>Oracle\u3084MySQL\u306b<code>JSON_TABLE<\/code>\u304c\u3042\u308b\u3088\u3046\u306b\u3001<strong>SQL Server<\/strong>\u306b\u306f<code>OPENJSON<\/code>\u3068\u3044\u3046\u5f37\u529b\u306a\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<code>OPENJSON<\/code>\u306f\u3001JSON\u30c6\u30ad\u30b9\u30c8\u3092\u89e3\u6790\u3057\u3001\u305d\u306e\u8981\u7d20\u3092\u884c\u3068\u5217\u306e\u30bb\u30c3\u30c8\u3068\u3057\u3066\u8fd4\u3059\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p><code>JSON_TABLE<\/code>\u304c<code>FROM<\/code>\u53e5\u3067\u30ab\u30f3\u30de\u3084<code>JOIN<\/code>\u3092\u4f7f\u3063\u3066\u7d50\u5408\u3059\u308b\u306e\u306b\u5bfe\u3057\u3001<code>OPENJSON<\/code>\u306f<code>CROSS APPLY<\/code>\u307e\u305f\u306f<code>OUTER APPLY<\/code>\u6f14\u7b97\u5b50\u3068\u5171\u306b\u4f7f\u7528\u3059\u308b\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002\u3053\u308c\u306f\u3001<code>OPENJSON<\/code>\u304c\u30c6\u30fc\u30d6\u30eb\u306e\u5404\u884c\u306b\u5bfe\u3057\u3066\u500b\u5225\u306b\u5b9f\u884c\u3055\u308c\u308b\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570\u3067\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<h3>OPENJSON\u306e\u57fa\u672c\u69cb\u6587\uff08WITH\u53e5\u3092\u4f7f\u7528\uff09<\/h3>\n<p><code>JSON_TABLE<\/code>\u3068\u540c\u69d8\u306e\u76ee\u7684\u3067\u4f7f\u3046\u5834\u5408\u3001<code>WITH<\/code>\u53e5\u3067\u51fa\u529b\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30ad\u30fc\u30de\uff08\u5217\u69cb\u6210\uff09\u3092\u660e\u793a\u7684\u306b\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u69cb\u6587\u306f<code>JSON_TABLE<\/code>\u306e<code>COLUMNS<\/code>\u53e5\u3068\u975e\u5e38\u306b\u3088\u304f\u4f3c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>SELECT ...\nFROM\n  source_table\n  CROSS APPLY OPENJSON(json_column, '$.array_path')\n  WITH (\n    column_name1 datatype '$.key1',\n    column_name2 datatype '$.key2'\n    -- \u5fc5\u8981\u306a\u5206\u3060\u3051\u5217\u3092\u5b9a\u7fa9\n  ) AS alias_name\n<\/code><\/pre>\n<ul>\n<li><strong><code>CROSS APPLY OPENJSON(...)<\/code><\/strong>: \u5143\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u5404\u884c\u306e<code>json_column<\/code>\u306b\u5bfe\u3057\u3066<code>OPENJSON<\/code>\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/li>\n<li><strong><code>WITH (...)<\/code><\/strong>: \u751f\u6210\u3055\u308c\u308b\u30c6\u30fc\u30d6\u30eb\u306e\u5217\u540d\u3001\u30c7\u30fc\u30bf\u578b\u3001\u305d\u3057\u3066\u5024\u306e\u53d6\u5f97\u5143\u3068\u306a\u308bJSON\u30d1\u30b9\u5f0f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\u4f7f\u7528\u4f8b\uff1aJSON_TABLE\u3068\u540c\u3058\u4f8b\u3092OPENJSON\u3067\u66f8\u304f<\/h3>\n<p><code>JSON_TABLE<\/code>\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3057\u305fEC\u30b5\u30a4\u30c8\u306e\u6ce8\u6587\u660e\u7d30\u30c7\u30fc\u30bf\u3092\u3001\u4eca\u5ea6\u306fSQL Server\u306e<code>OPENJSON<\/code>\u3067\u30c6\u30fc\u30d6\u30eb\u5316\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>orders \u30c6\u30fc\u30d6\u30eb<\/strong><\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>order_id<\/th>\n<th>items_json<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>101<\/td>\n<td><code>[{\"productId\": \"A-01\", \"price\": 1500, \"qty\": 1}, {\"productId\": \"B-02\", \"price\": 300, \"qty\": 5}]<\/code><\/td>\n<\/tr>\n<tr>\n<td>102<\/td>\n<td><code>[{\"productId\": \"C-03\", \"price\": 2000, \"qty\": 2}]<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code>SELECT\n  o.order_id,\n  jt.product_id,\n  jt.price,\n  jt.quantity\nFROM\n  orders o\n  CROSS APPLY OPENJSON(o.items_json, '$') -- \u914d\u5217\u3092\u76f4\u63a5\u6307\u5b9a\n  WITH (\n    product_id VARCHAR(10) '$.productId',\n    price      INT         '$.price',\n    quantity   INT         '$.qty'\n  ) AS jt;\n<\/code><\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c:<\/strong><\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>order_id<\/th>\n<th>product_id<\/th>\n<th>price<\/th>\n<th>quantity<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>101<\/td>\n<td>A-01<\/td>\n<td>1500<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>101<\/td>\n<td>B-02<\/td>\n<td>300<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>102<\/td>\n<td>C-03<\/td>\n<td>2000<\/td>\n<td>2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3054\u89a7\u306e\u901a\u308a\u3001<code>JSON_TABLE<\/code>\u3068\u5168\u304f\u540c\u3058\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3057\u305f\u3002<code>OPENJSON<\/code>\u306f\u3001\u7b2c\u4e8c\u5f15\u6570\u306e\u30d1\u30b9\u3067\u914d\u5217\u3092\u6307\u5b9a\u3057\u3001<code>WITH<\/code>\u53e5\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u3069\u306e\u30ad\u30fc\u3092\u5217\u306b\u3059\u308b\u304b\u3092\u5b9a\u7fa9\u3059\u308b\u3001\u3068\u3044\u3046\u70b9\u3067<code>JSON_TABLE<\/code>\u3068\u6982\u5ff5\u7684\u306b\u540c\u3058\u50cd\u304d\u3092\u3057\u307e\u3059\u3002SQL Server\u74b0\u5883\u3067JSON\u3092\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u306b\u6271\u3046\u969b\u306b\u306f\u3001\u3053\u306e<code>OPENJSON<\/code>\u304c\u4e2d\u6838\u7684\u306a\u5f79\u5272\u3092\u62c5\u3044\u307e\u3059\u3002<\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th><code>JSON_TABLE<\/code> (Oracle\/MySQL)<\/th>\n<th><code>OPENJSON<\/code> (SQL Server)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u95a2\u6570\u30bf\u30a4\u30d7<\/strong><\/td>\n<td>\u30c6\u30fc\u30d6\u30eb\u95a2\u6570<\/td>\n<td>\u30c6\u30fc\u30d6\u30eb\u5024\u95a2\u6570<\/td>\n<\/tr>\n<tr>\n<td><strong>\u7d50\u5408\u65b9\u6cd5<\/strong><\/td>\n<td><code>FROM<\/code>\u53e5\u3067\u30ab\u30f3\u30de\u3001<code>CROSS JOIN<\/code><\/td>\n<td><code>CROSS APPLY<\/code>, <code>OUTER APPLY<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>\u5217\u5b9a\u7fa9<\/strong><\/td>\n<td><code>COLUMNS<\/code>\u53e5<\/td>\n<td><code>WITH<\/code>\u53e5<\/td>\n<\/tr>\n<tr>\n<td><strong>\u5f79\u5272<\/strong><\/td>\n<td>JSON\u914d\u5217\u3092\u884c\u3068\u5217\u306b\u5909\u63db<\/td>\n<td>JSON\u914d\u5217\u3092\u884c\u3068\u5217\u306b\u5909\u63db<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u5fdc\u7528\u7de8\uff1a\u30cd\u30b9\u30c8\u3057\u305fJSON\u914d\u5217\u306e\u5c55\u958b\u2502\u591a\u5bfe\u591a\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092SQL\u3067\u653b\u7565<\/h2>\n<p>\u3053\u308c\u307e\u3067\u306e\u4f8b\u306f\u3001\u968e\u5c64\u304c\u6d45\u3044\u6bd4\u8f03\u7684\u30b7\u30f3\u30d7\u30eb\u306aJSON\u3067\u3057\u305f\u3002\u3057\u304b\u3057\u5b9f\u52d9\u3084\u8a66\u9a13\u554f\u984c\u3067\u306f\u3001\u914d\u5217\u306e\u4e2d\u306b\u3055\u3089\u306b\u914d\u5217\u304c\u542b\u307e\u308c\u308b\u300c\u30cd\u30b9\u30c8\u3057\u305fJSON\u300d\u304c\u767b\u5834\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30e2\u30c7\u30eb\u306b\u304a\u3051\u308b\u300c\u591a\u5bfe\u591a\u300d\u306e\u95a2\u4fc2\u6027\u3092\u8868\u73fe\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u304f\u3001\u3053\u308c\u3092\u3044\u304b\u306b\u3057\u3066SQL\u3067\u30d5\u30e9\u30c3\u30c8\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u5c55\u958b\u3059\u308b\u304b\u304c\u8155\u306e\u898b\u305b\u6240\u3067\u3059\u3002<\/p>\n<h3>\u8ab2\u984c\uff1a\u5165\u308c\u5b50\u306b\u306a\u3063\u305f\u5546\u54c1\u30bf\u30b0\u306eJSON<\/h3>\n<p>\u3042\u308b\u6ce8\u6587\u30c7\u30fc\u30bf\uff08<code>order_log<\/code>\u30c6\u30fc\u30d6\u30eb\uff09\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aJSON\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002\u4e00\u3064\u306e\u6ce8\u6587\u306b\u8907\u6570\u306e\u5546\u54c1\u304c\u3042\u308a\u3001\u3055\u3089\u306b\u4e00\u3064\u306e\u5546\u54c1\u306b\u8907\u6570\u306e\u30bf\u30b0\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u72b6\u6cc1\u3067\u3059\u3002<\/p>\n<pre><code>{\n  \"orderId\": \"ORD001\",\n  \"customer\": {\"name\": \"Sato\", \"level\": \"Gold\"},\n  \"products\": [\n    {\n      \"productName\": \"\u9ad8\u6a5f\u80fd\u30ce\u30fc\u30c8PC\",\n      \"tags\": [\"\u5bb6\u96fb\", \"\u4ed5\u4e8b\u7528\", \"\u9ad8\u30b9\u30da\u30c3\u30af\"]\n    },\n    {\n      \"productName\": \"\u30ef\u30a4\u30e4\u30ec\u30b9\u30de\u30a6\u30b9\",\n      \"tags\": [\"PC\u5468\u8fba\u6a5f\u5668\", \"\u5bb6\u96fb\"]\n    }\n  ]\n}\n<\/code><\/pre>\n<p>\u3053\u306e\u30c7\u30fc\u30bf\u304b\u3089\u3001\u300c\u6ce8\u6587ID\u3001\u5546\u54c1\u540d\u3001\u30bf\u30b0\u300d\u3068\u3044\u3046\u7d44\u307f\u5408\u308f\u305b\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h3>\u89e3\u6c7a\u7b56\uff1aJSON_TABLE \/ OPENJSON \u306e\u9023\u9396<\/h3>\n<p>\u7b54\u3048\u306f\u3001\u95a2\u6570\u3092<strong>\u9023\u9396\u3055\u305b\u3066<\/strong>\u6bb5\u968e\u7684\u306b\u5c55\u958b\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>\u7b2c\u4e00\u6bb5\u968e<\/strong>: <code>JSON_TABLE<\/code>\uff08\u307e\u305f\u306f<code>OPENJSON<\/code>\uff09\u3067 <code>products<\/code> \u914d\u5217\u3092\u5c55\u958b\u3057\u3001\u300c\u6ce8\u6587 \u5bfe \u5546\u54c1\u300d\u306e\u95a2\u4fc2\u3092\u30c6\u30fc\u30d6\u30eb\u5316\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u306f\u3001<code>tags<\/code> \u5217\u306f\u307e\u3060JSON\u914d\u5217\u306e\u307e\u307e\u3067\u3059\u3002<\/li>\n<li><strong>\u7b2c\u4e8c\u6bb5\u968e<\/strong>: \u7b2c\u4e00\u6bb5\u968e\u3067\u751f\u6210\u3055\u308c\u305f <code>tags<\/code> \u5217\uff08JSON\u914d\u5217\uff09\u306b\u5bfe\u3057\u3066\u3001<strong>\u3055\u3089\u306b\u3082\u3046\u4e00\u5ea6<\/strong> <code>JSON_TABLE<\/code>\uff08\u307e\u305f\u306f<code>OPENJSON<\/code>\uff09\u3092\u9069\u7528\u3057\u3001\u300c\u5546\u54c1 \u5bfe \u30bf\u30b0\u300d\u306e\u95a2\u4fc2\u3092\u30c6\u30fc\u30d6\u30eb\u5316\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p><strong>SQL\u30b3\u30fc\u30c9\u4f8b (Oracle\/MySQL \u306e <code>JSON_TABLE<\/code>):<\/strong><\/p>\n<pre><code>SELECT\n  l.order_id,\n  p.product_name,\n  t.tag\nFROM\n  order_log l,\n  -- \u7b2c\u4e00\u6bb5\u968e\uff1aproducts\u914d\u5217\u306e\u5c55\u958b\n  JSON_TABLE(l.json_data, '$.products[*]'\n    COLUMNS (\n      product_name VARCHAR(50) PATH '$.productName',\n      tags_json    JSON          PATH '$.tags' -- tags\u3092JSON\u578b\u306e\u307e\u307e\u53d6\u308a\u51fa\u3059\n    )\n  ) AS p,\n  -- \u7b2c\u4e8c\u6bb5\u968e\uff1atags\u914d\u5217\u306e\u5c55\u958b\n  JSON_TABLE(p.tags_json, '$[*]'\n    COLUMNS (\n      tag VARCHAR(20) PATH '$' -- \u914d\u5217\u306e\u8981\u7d20\u305d\u306e\u3082\u306e\u3092\u5024\u3068\u3059\u308b\n    )\n  ) AS t;\n<\/code><\/pre>\n<p><strong>\u5b9f\u884c\u7d50\u679c:<\/strong><\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>order_id<\/th>\n<th>product_name<\/th>\n<th>tag<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ORD001<\/td>\n<td>\u9ad8\u6a5f\u80fd\u30ce\u30fc\u30c8PC<\/td>\n<td>\u5bb6\u96fb<\/td>\n<\/tr>\n<tr>\n<td>ORD001<\/td>\n<td>\u9ad8\u6a5f\u80fd\u30ce\u30fc\u30c8PC<\/td>\n<td>\u4ed5\u4e8b\u7528<\/td>\n<\/tr>\n<tr>\n<td>ORD001<\/td>\n<td>\u9ad8\u6a5f\u80fd\u30ce\u30fc\u30c8PC<\/td>\n<td>\u9ad8\u30b9\u30da\u30c3\u30af<\/td>\n<\/tr>\n<tr>\n<td>ORD001<\/td>\n<td>\u30ef\u30a4\u30e4\u30ec\u30b9\u30de\u30a6\u30b9<\/td>\n<td>PC\u5468\u8fba\u6a5f\u5668<\/td>\n<\/tr>\n<tr>\n<td>ORD001<\/td>\n<td>\u30ef\u30a4\u30e4\u30ec\u30b9\u30de\u30a6\u30b9<\/td>\n<td>\u5bb6\u96fb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u3088\u3046\u306b\u95a2\u6570\u3092\u30cd\u30b9\u30c8\uff08<code>FROM<\/code>\u53e5\u3084<code>APPLY<\/code>\u3067\u9023\u9396\uff09\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u3069\u308c\u3060\u3051\u6df1\u3044\u968e\u5c64\u306eJSON\u30c7\u30fc\u30bf\u3067\u3042\u3063\u3066\u3082\u3001\u6700\u7d42\u7684\u306b\u306f\u6b63\u898f\u5316\u3055\u308c\u305f\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u306a\u30c6\u30fc\u30d6\u30eb\u5f62\u5f0f\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30c6\u30af\u30cb\u30c3\u30af\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u8a66\u9a13\u306e\u5348\u5f8c\u554f\u984c\u3067\u983b\u51fa\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3042\u308a\u3001\u975e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u3092\u6271\u3046\u4e0a\u3067\u6975\u3081\u3066\u91cd\u8981\u306a\u30b9\u30ad\u30eb\u3067\u3059\u3002<\/p>\n<h2>\u5b9f\u8df5\u3067\u5f79\u7acb\u3064\u77e5\u8b58\u2502\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30fbNULL\/\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u306e\u6ce8\u610f\u70b9<\/h2>\n<p><code>JSON_TABLE<\/code>\u3084<code>OPENJSON<\/code>\u306f\u975e\u5e38\u306b\u5f37\u529b\u3067\u3059\u304c\u3001\u5b9f\u52d9\u3067\u4f7f\u3044\u3053\u306a\u3059\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u6ce8\u610f\u70b9\u3001\u7279\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u77e5\u8b58\u306f\u3001\u5b89\u5b9a\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u3001\u307e\u305f\u9ad8\u5ea6\u306a\u8cc7\u683c\u8a66\u9a13\u3067\u6e1b\u70b9\u3055\u308c\u306a\u3044\u305f\u3081\u306b\u3082\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n<h3>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u95a2\u3059\u308b\u8003\u616e\u4e8b\u9805<\/h3>\n<p>JSON\u95a2\u6570\u3092<code>WHERE<\/code>\u53e5\u306a\u3069\u3067\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u30d5\u30eb\u30b9\u30ad\u30e3\u30f3\u304c\u767a\u751f\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u8457\u3057\u304f\u4f4e\u4e0b\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u6d3b\u7528<\/strong>: \u5927\u91cf\u306eJSON\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5834\u5408\u3001JSON\u30c7\u30fc\u30bf\u5185\u306e\u7279\u5b9a\u30ad\u30fc\u306b\u5bfe\u3057\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\u3002\u4f8b\u3048\u3070\u3001Oracle\u306e\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u7d22\u5f15\u3084MySQL\u306e\u751f\u6210\u5217\u306b\u5bfe\u3059\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306a\u3069\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3088\u3063\u3066\u306fJSON\u5185\u306e\u30b9\u30ab\u30e9\u30fc\u5024\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4ed8\u4e0e\u3059\u308b\u6a5f\u80fd\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u7279\u5b9a\u306e\u30ad\u30fc\u306e\u5024\u306b\u57fa\u3065\u3044\u305f\u691c\u7d22\u3092\u9ad8\u901f\u5316\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u5206\u96e2<\/strong>: API\u304b\u3089\u53d6\u5f97\u3057\u305f\u751f\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u300c\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u300d\u3068\u3001<code>JSON_TABLE<\/code>\u306a\u3069\u3067\u6b63\u898f\u5316\u30fb\u5909\u63db\u3057\u305f\u5f8c\u306e\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u300c\u5206\u6790\u7528\u30c6\u30fc\u30d6\u30eb\u300d\u3092\u5206\u3051\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u3082\u6709\u52b9\u3067\u3059\u3002\u591c\u9593\u30d0\u30c3\u30c1\u306a\u3069\u3067\u4e00\u5ea6\u306b\u5909\u63db\u51e6\u7406\u3092\u884c\u3044\u3001\u65e5\u4e2d\u306e\u5206\u6790\u30af\u30a8\u30ea\u306f\u6700\u9069\u5316\u3055\u308c\u305f\u5206\u6790\u7528\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5b89\u5b9a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>DB\u3068\u30a2\u30d7\u30ea\u306e\u5f79\u5272\u5206\u62c5<\/strong>: \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5e2f\u57df\u304c\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306b\u306a\u308b\u5834\u5408\u3001\u5de8\u5927\u306aJSON\u3092\u305d\u306e\u307e\u307e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u9001\u308b\u306e\u3067\u306f\u306a\u304f\u3001<code>JSON_VALUE<\/code>\u3084<code>JSON_QUERY<\/code>\u3092\u4f7f\u3063\u3066DB\u5074\u3067\u5fc5\u8981\u306a\u60c5\u5831\u3060\u3051\u3092\u62bd\u51fa\u3057\u3001\u30c7\u30fc\u30bf\u91cf\u3092\u524a\u6e1b\u3057\u3066\u304b\u3089\u8ee2\u9001\u3059\u308b\u65b9\u304c\u52b9\u7387\u7684\u3067\u3059\u3002<\/li>\n<\/ul>\n<h3>NULL\u5024\u3068\u30a8\u30e9\u30fc\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h3>\n<p>API\u304b\u3089\u53d6\u5f97\u3059\u308bJSON\u30c7\u30fc\u30bf\u306f\u3001\u5fc5\u305a\u3057\u3082\u5e38\u306b\u671f\u5f85\u901a\u308a\u306e\u5f62\u5f0f\u3067\u3042\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u304b\u3063\u305f\u308a\u3001\u4e88\u671f\u305b\u306c\u30c7\u30fc\u30bf\u578b\u304c\u5165\u3063\u3066\u3044\u305f\u308a\u3059\u308b\u5834\u5408\u306e\u6319\u52d5\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30d1\u30b9\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408<\/strong>: <code>JSON_TABLE<\/code>\u306e<code>PATH<\/code>\u3067\u6307\u5b9a\u3057\u305f\u30ad\u30fc\u304cJSON\u5185\u306b\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u305d\u306e\u5217\u306b\u306f<code>NULL<\/code>\u304c\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u591a\u304f\u306e\u5834\u5408\u3067\u4fbf\u5229\u306a\u6319\u52d5\u3067\u3059\u304c\u3001SQL Server\u3067<code>OPENJSON<\/code>\u3092\u4f7f\u3046\u969b\u306f\u3001<code>CROSS APPLY<\/code>\u3067\u306f\u306a\u304f<code>OUTER APPLY<\/code>\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001JSON\u914d\u5217\u81ea\u4f53\u304c\u7a7a\u3001\u307e\u305f\u306f\u5b58\u5728\u3057\u306a\u3044\u30ec\u30b3\u30fc\u30c9\u3082\u5143\u306e\u884c\u304c\u7d50\u679c\u30bb\u30c3\u30c8\u306b\u6b8b\u308b\u3088\u3046\u306b\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u30c7\u30fc\u30bf\u578b\u304c\u4e0d\u4e00\u81f4\u306e\u5834\u5408<\/strong>: <code>COLUMNS<\/code>\u53e5\u3067<code>INT<\/code>\u578b\u3092\u6307\u5b9a\u3057\u305f\u5217\u306b\u5bfe\u5fdc\u3059\u308bJSON\u306e\u5024\u304c<code>\"abc\"<\/code>\u306e\u3088\u3046\u306a\u6587\u5b57\u5217\u3060\u3063\u305f\u5834\u5408\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002Oracle\u306a\u3069\u3067\u306f<code>ON ERROR<\/code>\u53e5\u3092\u4f7f\u3044\u3001<code>NULL ON ERROR<\/code>\uff08\u30a8\u30e9\u30fc\u6642\u306bNULL\u3092\u8fd4\u3059\uff09\u3084<code>DEFAULT '\u5024' ON ERROR<\/code>\uff08\u30a8\u30e9\u30fc\u6642\u306b\u6307\u5b9a\u3057\u305f\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8fd4\u3059\uff09\u3068\u3044\u3063\u305f\u6319\u52d5\u3092\u7d30\u304b\u304f\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<table border=\"1\">\n<thead>\n<tr>\n<th>\u72b6\u6cc1<\/th>\n<th>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u6319\u52d5<\/th>\n<th>\u5bfe\u7b56\u30fb\u5236\u5fa1\u65b9\u6cd5\u306e\u4f8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u6307\u5b9a\u3057\u305f\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044<\/td>\n<td><code>NULL<\/code>\u304c\u8fd4\u308b<\/td>\n<td><code>OUTER APPLY<\/code>\u306e\u5229\u7528 (SQL Server) \/ <code>LEFT JOIN<\/code>\u306e\u767a\u60f3<\/td>\n<\/tr>\n<tr>\n<td>\u914d\u5217\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u7a7a<\/td>\n<td>\u884c\u304c\u751f\u6210\u3055\u308c\u306a\u3044<\/td>\n<td><code>ON EMPTY<\/code>\u53e5\u306e\u5229\u7528 (Oracle)<\/td>\n<\/tr>\n<tr>\n<td>\u30c7\u30fc\u30bf\u578b\u304c\u4e0d\u4e00\u81f4<\/td>\n<td>\u30a8\u30e9\u30fc\u304c\u767a\u751f<\/td>\n<td><code>ON ERROR<\/code>\u53e5\u306e\u5229\u7528 (Oracle) \/ <code>TRY_CAST<\/code>\u306e\u5229\u7528 (SQL Server)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u8a66\u9a13\u306e\u5348\u5f8c\u554f\u984c\u306a\u3069\u3067\u306f\u3001\u3053\u3046\u3057\u305f\u300c\u4f8b\u5916\u30b1\u30fc\u30b9\u300d\u3092\u3044\u304b\u306b\u8003\u616e\u3067\u304d\u3066\u3044\u308b\u304b\u304c\u554f\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u300c\u6b63\u5e38\u7cfb\u300d\u306e\u30c7\u30fc\u30bf\u3060\u3051\u3067\u306a\u304f\u3001JSON\u304c<code>null<\/code>\u3084\u7a7a\u914d\u5217<code>[]<\/code>\u3060\u3063\u305f\u5834\u5408\u306bSQL\u304c\u3069\u3046\u52d5\u304f\u304b\u3092\u5e38\u306b\u610f\u8b58\u3059\u308b\u7656\u3092\u3064\u3051\u307e\u3057\u3087\u3046\u3002JSON\u95a2\u6570\u306f\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5805\u7262\u306a\u8a2d\u8a08\u539f\u5247\u3092\u4ee3\u66ff\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u4e21\u8005\u3092\u9069\u5207\u306b\u6a4b\u6e21\u3057\u3059\u308b\u305f\u3081\u306e\u6280\u8853\u3067\u3042\u308b\u3053\u3068\u3092\u5fd8\u308c\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2>\u307e\u3068\u3081\uff1aSQL\u306b\u3088\u308bJSON\u51e6\u7406\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3001\u30c7\u30fc\u30bf\u6d3b\u7528\u306e\u5e45\u3092\u5e83\u3052\u3088\u3046<\/h2>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u73fe\u4ee3\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u5fc5\u9808\u306e\u30b9\u30ad\u30eb\u3067\u3042\u308b\u300cSQL\u306b\u3088\u308bJSON\u30c7\u30fc\u30bf\u306e\u30c6\u30fc\u30d6\u30eb\u5316\u300d\u306b\u3064\u3044\u3066\u3001\u4f53\u7cfb\u7684\u306b\u89e3\u8aac\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><strong>JSON\u30d1\u30b9\u5f0f<\/strong>\u304c\u3001JSON\u5185\u306e\u7279\u5b9a\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u8a00\u8a9e\u3067\u3059\u3002<\/li>\n<li><code>JSON_VALUE<\/code>\u3068<code>JSON_QUERY<\/code>\u306f\u3001\u305d\u308c\u305e\u308c<strong>\u5358\u4e00\u306e\u5024<\/strong>\u3068<strong>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\/\u914d\u5217<\/strong>\u3092\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u3067\u62bd\u51fa\u3057\u307e\u3059\u3002<\/li>\n<li><code>JSON_TABLE<\/code> (Oracle\/MySQL) \u3068 <code>OPENJSON<\/code> (SQL Server) \u306f\u3001JSON\u914d\u5217\u3092<strong>\u884c\u3068\u5217\u304b\u3089\u306a\u308b\u30c6\u30fc\u30d6\u30eb\u5f62\u5f0f\u306b\u4e00\u62ec\u5909\u63db<\/strong>\u3059\u308b\u3001\u672c\u30c6\u30fc\u30de\u306e\u4e3b\u5f79\u3067\u3059\u3002<\/li>\n<li>\u30cd\u30b9\u30c8\u3057\u305f\u8907\u96d1\u306aJSON\u306f\u3001\u3053\u308c\u3089\u306e\u95a2\u6570\u3092<strong>\u9023\u9396\u3055\u305b\u308b<\/strong>\u3053\u3068\u3067\u3001\u3069\u3093\u306a\u306b\u6df1\u3044\u968e\u5c64\u3067\u3082\u30d5\u30e9\u30c3\u30c8\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u5c55\u958b\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u5b9f\u52d9\u3067\u306f<strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/strong>\u3068<strong>\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/strong>\u3092\u8003\u616e\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5805\u7262\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>API\u9023\u643a\u3084\u975e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u306e\u6d3b\u7528\u304c\u5f53\u305f\u308a\u524d\u306b\u306a\u3063\u305f\u4eca\u3001SQL\u3092\u4f7f\u3063\u3066JSON\u3092\u76f4\u63a5\u6271\u3048\u308b\u80fd\u529b\u306f\u3001\u3042\u306a\u305f\u306e\u5e02\u5834\u4fa1\u5024\u3092\u5927\u304d\u304f\u9ad8\u3081\u308b\u6b66\u5668\u3068\u306a\u308a\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u8a66\u9a13\u306a\u3069\u306e\u8cc7\u683c\u5bfe\u7b56\u3068\u3057\u3066\u306f\u3082\u3061\u308d\u3093\u3001\u65e5\u3005\u306e\u958b\u767a\u696d\u52d9\u3092\u52b9\u7387\u5316\u3059\u308b\u305f\u3081\u306b\u3082\u3001\u305c\u3072\u672c\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u95a2\u6570\u3068\u30c6\u30af\u30cb\u30c3\u30af\u3092\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3057\u3066\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u521d\u306f\u8907\u96d1\u306b\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4e00\u3064\u4e00\u3064\u306e\u69cb\u6587\u306e\u5f79\u5272\u3092\u7406\u89e3\u3059\u308c\u3070\u3001\u5fc5\u305a\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u975e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u3068\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u306e\u57a3\u6839\u3092SQL\u3067\u81ea\u5728\u306b\u4e57\u308a\u8d8a\u3048\u3001\u30c7\u30fc\u30bf\u6d3b\u7528\u306e\u53ef\u80fd\u6027\u3092\u3055\u3089\u306b\u5e83\u3052\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web API\u304b\u3089\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30b0\u306a\u3069\u3001\u73fe\u4ee3\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306b\u304a\u3044\u3066JSON\uff08JavaScript Object Notation\uff09\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u306f\u907f\u3051\u3066\u901a\u308c\u307e\u305b\u3093\u3002\u67d4\u8edf\u6027\u304c\u9ad8\u304f\u4fbf\u5229\u306a &#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","columnck":"","stmeta_robots":"index, follow","st_titlewords":"","st_title_extra":"","st_keywords":"","st_description":"","st_display_ad_mark":"","st_display_ad_mark_hide":"","textcopyck":"","st_copyright":"","st_copyurl":"","eyecatch_set":"","st_youtube_url":"","st_youtube_eyecatch":"","headerwidget_set":"","updatewidget_set":"","kanrenwidget_set":"","ikkatuwidget_set":"","koukoku_set":"","auto_adsense_koukoku_set":"","st_redirect":"","st_redirect_url_as_canonical":"","st_redirect_pvm_do_not_track":"","post_data_updatewidget_set":"","st_post_header_under_bg":"","st_twitter_tag":"","affinger_note":"","rankdisplayck":"","st_head_code":"","st_footer_code":"","st_post_header_under_code":"","_st_toc_override":false,"_st_toc_settings":[]},"categories":[3],"tags":[6],"class_list":["post-6073","post","type-post","status-publish","format-standard","hentry","category-ipa","tag-6"],"_links":{"self":[{"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/posts\/6073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/comments?post=6073"}],"version-history":[{"count":0,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/posts\/6073\/revisions"}],"wp:attachment":[{"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/media?parent=6073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/categories?post=6073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/tags?post=6073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}