{"id":1671,"date":"2026-03-27T07:12:07","date_gmt":"2026-03-27T07:12:07","guid":{"rendered":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/"},"modified":"2026-03-27T07:12:07","modified_gmt":"2026-03-27T07:12:07","slug":"self-referencing-entities-recursive-relationships-erd","status":"publish","type":"post","link":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/","title":{"rendered":"ERD\u30ac\u30a4\u30c9\uff1a\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1aERD\u306b\u304a\u3051\u308b\u518d\u5e30\u7684\u95a2\u4fc2\u306e\u7406\u89e3"},"content":{"rendered":"<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u8a08\u306e\u8907\u96d1\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u304a\u3044\u3066\u3001\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u307b\u3069\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u6311\u6226\u3092\u3082\u305f\u3089\u3059\u6982\u5ff5\u306f\u5c11\u306a\u3044\u3002\u518d\u5e30\u7684\u95a2\u4fc2\u3068\u3082\u547c\u3070\u308c\u308b\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u304c\u81ea\u5206\u81ea\u8eab\u3068\u30ea\u30f3\u30af\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3001\u30d5\u30e9\u30c3\u30c8\u306a\u30b9\u30ad\u30fc\u30de\u5185\u306b\u968e\u5c64\u69cb\u9020\u3084\u8907\u96d1\u306a\u69cb\u9020\u3092\u30e2\u30c7\u30eb\u5316\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3059\u308b\u3002\u3053\u308c\u3092\u6b63\u3057\u304f\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u306f\u3001\u30c7\u30fc\u30bf\u6574\u5408\u6027\u3068\u30af\u30a8\u30ea\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u3067\u3042\u308b\u3002<\/p>\n<p>\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u95a2\u4fc2\u56f3\uff08ERD\uff09\u3092\u8a2d\u8a08\u3059\u308b\u969b\u3001\u307b\u3068\u3093\u3069\u306e\u95a2\u4fc2\u306f2\u3064\u306e\u7570\u306a\u308b\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u7d50\u3073\u3064\u3051\u308b\u3002\u3057\u304b\u3057\u3001\u73fe\u5b9f\u4e16\u754c\u306e\u30c7\u30fc\u30bf\u306f\u3001\u5358\u4e00\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304c\u81ea\u5206\u81ea\u8eab\u306e\u7a2e\u985e\u3068\u95a2\u4fc2\u3092\u6301\u3064\u3053\u3068\u3092\u8981\u6c42\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3002\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u304c\u5f93\u696d\u54e1\u3092\u7ba1\u7406\u3057\u3001\u30ab\u30c6\u30b4\u30ea\u304c\u30b5\u30d6\u30ab\u30c6\u30b4\u30ea\u3092\u542b\u307f\u3001\u88fd\u54c1\u304c\u30ad\u30c3\u30c8\u306e\u4e00\u90e8\u3068\u306a\u308b\u3002\u3053\u306e\u3088\u3046\u306a\u72b6\u6cc1\u3067\u306f\u3001\u518d\u5e30\u7684\u95a2\u4fc2\u304c\u5fc5\u8981\u3068\u306a\u308b\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u6271\u3046\u305f\u3081\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3001\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3001\u304a\u3088\u3073\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u691c\u8a0e\u3059\u308b\u3002\u7279\u5b9a\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30c4\u30fc\u30eb\u306b\u4f9d\u5b58\u305b\u305a\u306b\u3001\u3053\u308c\u3089\u306e\u95a2\u4fc2\u3092\u3069\u306e\u3088\u3046\u306b\u69cb\u9020\u5316\u3059\u308b\u304b\u3092\u3001\u666e\u904d\u7684\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u539f\u5247\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u691c\u8a0e\u3059\u308b\u3002<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img alt=\"Chalkboard-style educational infographic explaining self-referencing entities and recursive relationships in Entity Relationship Diagrams (ERD), featuring hand-drawn employee hierarchy example with manager_id foreign key looping to employee_id primary key, visual use cases for organizational charts category trees bill of materials and comment threads, key implementation rules including nullable foreign keys indexing and cycle prevention, plus query method comparison between self-joins and recursive CTEs\" decoding=\"async\" src=\"https:\/\/www.go-diagram.com\/wp-content\/uploads\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg\"\/><\/figure>\n<\/div>\n<h2>\ud83e\uddd0 \u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3068\u306f\u4f55\u304b\uff1f<\/h2>\n<p>\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3068\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u5916\u90e8\u30ad\u30fc\u304c\u3001\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u306e\u4e3b\u30ad\u30fc\u3092\u6307\u3059\u3068\u304d\u306b\u767a\u751f\u3059\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5358\u4e00\u306e\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u30c7\u30fc\u30bf\u884c\u304c\u3001\u305d\u306e\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u4ed6\u306e\u884c\u3092\u53c2\u7167\u3067\u304d\u308b\u30eb\u30fc\u30d7\u304c\u4f5c\u3089\u308c\u308b\u3002\u3053\u308c\u306f\u968e\u5c64\u69cb\u9020\u306e\u30c7\u30fc\u30bf\u3092\u30e2\u30c7\u30eb\u5316\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u624b\u6cd5\u3067\u3042\u308b\u3002<\/p>\n<p><strong>\u4e3b\u306a\u7279\u5fb4\uff1a<\/strong><\/p>\n<ul>\n<li><strong>\u5358\u4e00\u30c6\u30fc\u30d6\u30eb\uff1a<\/strong> \u95a2\u4fc2\u306f\u5b8c\u5168\u306b1\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u69cb\u9020\u5185\u306b\u5b58\u5728\u3059\u308b\u3002<\/li>\n<li><strong>\u89aa\u5b50\u30ea\u30f3\u30af\uff1a<\/strong> 1\u884c\u304c\u89aa\u3068\u306a\u308a\u3001\u5225\u306e\u884c\u304c\u5b50\u3068\u306a\u308b\u3002<\/li>\n<li><strong>NULL\u306e\u6271\u3044\uff1a<\/strong> \u968e\u5c64\u306e\u6839\uff08\u30eb\u30fc\u30c8\uff09\u306f\u3001\u901a\u5e38\u3001\u5916\u90e8\u30ad\u30fc\u5217\u306bNULL\u5024\u3092\u6301\u3064\u3002<\/li>\n<li><strong>\u5faa\u74b0\u8ad6\u7406\uff1a<\/strong> \u30c7\u30fc\u30bf\u53d6\u5f97\u4e2d\u306b\u7121\u9650\u30eb\u30fc\u30d7\u3092\u9632\u3050\u305f\u3081\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3042\u308b\u3002<\/li>\n<\/ul>\n<h2>\ud83c\udfd7\ufe0f \u518d\u5e30\u7684\u95a2\u4fc2\u306e\u6838\u5fc3\u69cb\u6210\u8981\u7d20<\/h2>\n<p>\u3053\u306e\u95a2\u4fc2\u3092\u52b9\u679c\u7684\u306b\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u69cb\u6210\u8981\u7d20\u304c\u6574\u5408\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u306f\u3001\u4e3b\u30ad\u30fc\u3068\u5916\u90e8\u30ad\u30fc\u306e\u76f8\u4e92\u4f5c\u7528\u306b\u5927\u304d\u304f\u4f9d\u5b58\u3059\u308b\u3002<\/p>\n<h3>\ud83d\udd11 \u4e3b\u30ad\u30fc<\/h3>\n<p>\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u3059\u3079\u3066\u306e\u884c\u306b\u306f\u4e00\u610f\u306e\u8b58\u5225\u5b50\u304c\u5fc5\u8981\u3067\u3042\u308b\u3002\u3053\u308c\u304c\u30a2\u30f3\u30ab\u30fc\u3068\u306a\u308b\u3002\u884c\u304c\u4ed6\u306e\u884c\u3092\u53c2\u7167\u3059\u308b\u969b\u306f\u3001\u89aa\u884c\u306e\u4e00\u610f\u306e\u8b58\u5225\u5b50\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u3067\u5b9f\u73fe\u3059\u308b\u3002<\/p>\n<ul>\n<li>\u5b89\u5b9a\u6027\u304c\u6c42\u3081\u3089\u308c\u308b\u3002\u4e3b\u30ad\u30fc\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u8907\u96d1\u306a\u64cd\u4f5c\u3067\u3042\u308b\u3002<\/li>\n<li>\u9ad8\u901f\u306a\u691c\u7d22\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5f97\u308b\u305f\u3081\u306b\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4ed8\u3051\u308b\u3079\u304d\u3067\u3042\u308b\u3002<\/li>\n<li>\u4e00\u822c\u7684\u306b\u306f\u3001\u81ea\u52d5\u5897\u5206\u306e\u6574\u6570\u307e\u305f\u306fUUID\u3067\u3042\u308b\u3002<\/li>\n<\/ul>\n<h3>\ud83d\udd17 \u5916\u90e8\u30ad\u30fc<\/h3>\n<p>\u5916\u90e8\u30ad\u30fc\u5217\u306f\u3001\u4e3b\u30ad\u30fc\u3068\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u5185\u306b\u5b58\u5728\u3059\u308b\u3002\u3053\u306e\u5217\u306f\u89aa\u884c\u306e\u4e3b\u30ad\u30fc\u306e\u5024\u3092\u4fdd\u6301\u3059\u308b\u3002\u3053\u306e\u5217\u304c\u95a2\u4fc2\u306e\u65b9\u5411\u3092\u5b9a\u7fa9\u3059\u308b\u3002<\/p>\n<ul>\n<li><strong>NULL\u8a31\u5bb9\uff1a<\/strong> \u968e\u5c64\u306b\u304a\u3044\u3066\u3001\u6700\u4e0a\u4f4d\u306e\u9805\u76ee\uff08\u30eb\u30fc\u30c8\uff09\u306b\u306f\u89aa\u304c\u5b58\u5728\u3057\u306a\u3044\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u3053\u306e\u5217\u306fNULL\u5024\u3092\u8a31\u5bb9\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/li>\n<li><strong>\u5236\u7d04\uff1a<\/strong> \u5916\u90e8\u30ad\u30fc\u5236\u7d04\u306b\u3088\u308a\u3001\u683c\u7d0d\u3055\u308c\u305f\u5024\u304c\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u65e2\u5b58\u306e\u4e3b\u30ad\u30fc\u3068\u4e00\u81f4\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3059\u308b\u3002<\/li>\n<li><strong>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff1a<\/strong> \u5fc5\u9808\u3067\u306f\u306a\u3044\u304c\u3001\u5916\u90e8\u30ad\u30fc\u5217\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u3001\u968e\u5c64\u3092\u305f\u3069\u308b\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u901f\u5ea6\u304c\u8457\u3057\u304f\u5411\u4e0a\u3059\u308b\u3002<\/li>\n<\/ul>\n<h2>\ud83d\udcd0 \u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u95a2\u4fc2\u56f3\u306b\u304a\u3051\u308b\u53ef\u8996\u5316<\/h2>\n<p>\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306bERD\u3092\u63cf\u304f\u969b\u3001\u8868\u8a18\u6cd5\u306f\u4e00\u898b\u3057\u3066\u6df7\u4e71\u3057\u3084\u3059\u3044\u3002\u6a19\u6e96\u7684\u306aERD\u30c4\u30fc\u30eb\u306f\u3001\u63a5\u7d9a\u3092\u793a\u3059\u305f\u3081\u306b\u7279\u5b9a\u306e\u7dda\u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<p><strong>\u8996\u899a\u7684\u8868\u8a18\u30eb\u30fc\u30eb\uff1a<\/strong><\/p>\n<ul>\n<li>\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30dc\u30c3\u30af\u30b9\u306f\u4e00\u5ea6\u3060\u3051\u63cf\u304b\u308c\u308b\u3002<\/li>\n<li>\u95a2\u4fc2\u7dda\u306f\u3001\u540c\u3058\u30dc\u30c3\u30af\u30b9\u5185\u306e\u4e3b\u30ad\u30fc\u3092\u5916\u90e8\u30ad\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u3002<\/li>\n<li>\u3053\u306e\u7dda\u306f\u3057\u3070\u3057\u3070\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306b\u623b\u308a\u3001\u8996\u899a\u7684\u306a\u5186\u3092\u5f62\u6210\u3059\u308b\u3002<\/li>\n<li>\u57fa\u6570\u30de\u30fc\u30ab\u30fc\uff081:1\u30011:M\uff09\u306f\u3001\u89aa\u304c\u4f55\u4eba\u306e\u5b50\u3092\u6301\u3066\u308b\u304b\u3092\u793a\u3059\u305f\u3081\u306b\u7dda\u306b\u914d\u7f6e\u3055\u308c\u308b\u3002<\/li>\n<\/ul>\n<p><strong>\u4f8b\uff1a\u7d44\u7e54\u69cb\u9020<\/strong><\/p>\n<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>\u6982\u5ff5<\/th>\n<th>\u8aac\u660e<\/th>\n<th>ERD\u8868\u8a18<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5f93\u696d\u54e1<\/td>\n<td>\u30e2\u30c7\u30eb\u5316\u3055\u308c\u308b\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3<\/td>\n<td>\u300c\u5f93\u696d\u54e1\u300d\u3068\u30e9\u30d9\u30eb\u4ed8\u3051\u3055\u308c\u305f\u30dc\u30c3\u30af\u30b9<\/td>\n<\/tr>\n<tr>\n<td>\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<\/td>\n<td>\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u3092\u53c2\u7167\u3059\u308b\u5f79\u5272<\/td>\n<td>\u30de\u30cd\u30fc\u30b8\u30e3\u30fcID\u304b\u3089\u5f93\u696d\u54e1ID\u3078\u306e\u7dda<\/td>\n<\/tr>\n<tr>\n<td>\u5831\u544a\u30e9\u30a4\u30f3<\/td>\n<td>\u518d\u5e30\u7684\u95a2\u4fc2<\/td>\n<td>\u30eb\u30fc\u30d7\u3059\u308b\u77e2\u5370<\/td>\n<\/tr>\n<tr>\n<td>\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9<\/td>\n<td>CEO\u307e\u305f\u306f\u6700\u4e0a\u4f4d\u306e\u4e0a\u53f8<\/td>\n<td>\u30de\u30cd\u30fc\u30b8\u30e3\u30fcID\u306bNULL\u5024<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\ud83c\udf33 \u518d\u5e30\u7684\u30c7\u30fc\u30bf\u306e\u4e00\u822c\u7684\u306a\u5229\u7528\u30b1\u30fc\u30b9<\/h2>\n<p>\u518d\u5e30\u7684\u95a2\u4fc2\u306f\u7406\u8ad6\u7684\u306a\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u306b\u304a\u3051\u308b\u5b9f\u969b\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u3002\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u9069\u7528\u3055\u308c\u308b\u6700\u3082\u4e00\u822c\u7684\u306a\u30b7\u30ca\u30ea\u30aa\u3092\u4ee5\u4e0b\u306b\u793a\u3059\u3002<\/p>\n<h3>1\ufe0f\u20e3 \u7d44\u7e54\u968e\u5c64<\/h3>\n<p>\u3059\u3079\u3066\u306e\u4f1a\u793e\u306b\u306f\u69cb\u9020\u304c\u3042\u308b\u3002\u5f93\u696d\u54e1\u306f\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306b\u5831\u544a\u3057\u3001\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306f\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u306b\u5831\u544a\u3057\u3001\u30c7\u30a3\u30ec\u30af\u30bf\u30fc\u306fVP\u306b\u5831\u544a\u3059\u308b\u3002\u3053\u306e\u9023\u9396\u306f\u53e4\u5178\u7684\u306a\u30c4\u30ea\u30fc\u69cb\u9020\u3067\u3042\u308b\u3002<\/p>\n<ul>\n<li><strong>\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\uff1a<\/strong> \u300cEmployees\u300d\u3068\u3044\u3046\u540d\u524d\u306e1\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3002<\/li>\n<li><strong>\u30ab\u30e9\u30e0\uff1a<\/strong> <code>\u5f93\u696d\u54e1ID<\/code>, <code>\u540d\u524d<\/code>, <code>\u30de\u30cd\u30fc\u30b8\u30e3\u30fcID<\/code>.<\/li>\n<li><strong>\u8ad6\u7406:<\/strong> \u305d\u306e <code>\u30de\u30cd\u30fc\u30b8\u30e3\u30fcID<\/code> \u5217\u306f\u53c2\u7167\u3057\u307e\u3059 <code>\u5f93\u696d\u54e1ID<\/code>.<\/li>\n<li><strong>\u5229\u70b9:<\/strong> \u65b0\u3057\u3044\u5f93\u696d\u54e1\u3092\u767b\u9332\u3059\u308b\u306b\u306f\u30011\u884c\u3060\u3051\u3092\u633f\u5165\u3059\u308c\u3070\u3088\u3044\u3002\u5404\u90e8\u7f72\u3054\u3068\u306b\u65b0\u3057\u3044\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002<\/li>\n<\/ul>\n<h3>2\ufe0f\u20e3 \u30ab\u30c6\u30b4\u30ea\u30c4\u30ea\u30fc<\/h3>\n<p>EC\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001\u88fd\u54c1\u3092\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ab\u30c6\u30b4\u30ea\u306b\u5206\u985e\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3002\u96fb\u5b50\u6a5f\u5668 &gt; \u30b3\u30f3\u30d4\u30e5\u30fc\u30bf &gt; \u30e9\u30c3\u30d7\u30c8\u30c3\u30d7\u3002<\/p>\n<ul>\n<li><strong>\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb:<\/strong> \u300cCategories\u300d\u3068\u3044\u3046\u540d\u524d\u306e1\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3002<\/li>\n<li><strong>\u5217:<\/strong> <code>\u30ab\u30c6\u30b4\u30eaID<\/code>, <code>\u540d\u524d<\/code>, <code>\u89aaID<\/code>.<\/li>\n<li><strong>\u8ad6\u7406:<\/strong> \u30ab\u30c6\u30b4\u30ea\u306b\u306f\u89aa\u3092\u6301\u3064\u3053\u3068\u3082\u3067\u304d\u3001\u30eb\u30fc\u30c8\u30ab\u30c6\u30b4\u30ea\uff08parent_id \u304c null\uff09\u306b\u306a\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/li>\n<li><strong>\u5229\u70b9:<\/strong> \u30b9\u30ad\u30fc\u30de\u3092\u5909\u66f4\u305b\u305a\u306b\u3001\u5fc5\u8981\u306a\u3060\u3051\u30b5\u30d6\u30ab\u30c6\u30b4\u30ea\u3092\u8ffd\u52a0\u3067\u304d\u308b\u67d4\u8edf\u6027\u3002<\/li>\n<\/ul>\n<h3>3\ufe0f\u20e3 \u6750\u6599\u8868\uff08BOM\uff09<\/h3>\n<p>\u88fd\u9020\u306b\u306f\u3057\u3070\u3057\u3070\u8907\u96d1\u306a\u90e8\u54c1\u30ea\u30b9\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002\u8eca\u306f\u30a8\u30f3\u30b8\u30f3\u3067\u69cb\u6210\u3055\u308c\u3066\u304a\u308a\u3001\u30a8\u30f3\u30b8\u30f3\u306f\u30d4\u30b9\u30c8\u30f3\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3068\u304d\u306b\u306f\u30d4\u30b9\u30c8\u30f3\u304c\u5225\u306e\u30a8\u30f3\u30b8\u30f3\u30bf\u30a4\u30d7\u306e\u4e00\u90e8\u3068\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\uff1a<\/strong> \u300cParts\u300d\u3068\u3044\u3046\u540d\u524d\u306e1\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3002<\/li>\n<li><strong>\u5217\uff1a<\/strong> <code>part_id<\/code>, <code>\u8aac\u660e<\/code>, <code>assembly_id<\/code>.<\/li>\n<li><strong>\u30ed\u30b8\u30c3\u30af\uff1a<\/strong> \u90e8\u54c1\u306f\u3001\u4ed6\u306e\u90e8\u54c1\u3092\u542b\u3080\u81ea\u4f53\u304c\u30a2\u30bb\u30f3\u30d6\u30ea\u3067\u3042\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u5229\u70b9\uff1a<\/strong> \u8907\u6570\u30ec\u30d9\u30eb\u306e\u88fd\u9020\u69cb\u9020\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>4\ufe0f\u20e3 \u30b3\u30e1\u30f3\u30c8\u30b9\u30ec\u30c3\u30c9<\/h3>\n<p>\u30d5\u30a9\u30fc\u30e9\u30e0\u3084\u30d6\u30ed\u30b0\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30b3\u30e1\u30f3\u30c8\u306b\u8fd4\u4fe1\u3067\u304d\u307e\u3059\u3002\u30b3\u30e1\u30f3\u30c8\u306b\u306f\u3001\u8fd4\u4fe1\u3057\u3066\u3044\u308b\u89aa\u30b3\u30e1\u30f3\u30c8\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u3068\u3001\u72ec\u7acb\u3057\u305f\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u5b58\u5728\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\uff1a<\/strong> \u300cComments\u300d\u3068\u3044\u3046\u540d\u524d\u306e1\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3002<\/li>\n<li><strong>\u5217\uff1a<\/strong> <code>comment_id<\/code>, <code>user_id<\/code>, <code>\u30b3\u30f3\u30c6\u30f3\u30c4<\/code>, <code>parent_comment_id<\/code>.<\/li>\n<li><strong>\u30ed\u30b8\u30c3\u30af\uff1a<\/strong> \u8fd4\u4fe1\u306f\u5143\u306e\u30b3\u30e1\u30f3\u30c8ID\u306b\u30ea\u30f3\u30af\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u5229\u70b9\uff1a<\/strong> \u8b70\u8ad6\u306e\u7121\u9650\u306e\u30cd\u30b9\u30c8\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\u2699\ufe0f \u5b9f\u88c5\u4e0a\u306e\u8003\u616e\u4e8b\u9805<\/h2>\n<p>\u30b9\u30ad\u30fc\u30de\u306e\u8a2d\u8a08\u306f\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u3059\u304e\u307e\u305b\u3093\u3002\u3055\u307e\u3056\u307e\u306a\u72b6\u6cc1\u4e0b\u3067\u30c7\u30fc\u30bf\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3059\u308b\u306b\u306f\u3001\u614e\u91cd\u306a\u8a08\u753b\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3>\ud83d\uded1 \u5faa\u74b0\u53c2\u7167\u306e\u9632\u6b62<\/h3>\n<p>\u518d\u5e30\u7684\u95a2\u4fc2\u306b\u304a\u3051\u308b\u91cd\u5927\u306a\u30ea\u30b9\u30af\u306f\u3001\u5faa\u74b0\u3092\u4f5c\u308b\u3053\u3068\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u5f93\u696d\u54e1A\u304c\u5f93\u696d\u54e1B\u3092\u7ba1\u7406\u3057\u3001\u5f93\u696d\u54e1B\u304c\u5f93\u696d\u54e1A\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u7121\u9650\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ed\u30b8\u30c3\u30af\uff1a<\/strong>\u30c7\u30fc\u30bf\u3092\u633f\u5165\u307e\u305f\u306f\u66f4\u65b0\u3059\u308b\u969b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u968e\u5c64\u306e\u6df1\u3055\u3092\u78ba\u8a8d\u3057\u3001\u5faa\u74b0\u304c\u5f62\u6210\u3055\u308c\u306a\u3044\u3053\u3068\u3092\u4fdd\u8a3c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5236\u7d04\uff1a<\/strong>\u6a19\u6e96\u7684\u306aSQL\u5236\u7d04\u3067\u306f\u5faa\u74b0\u3092\u7c21\u5358\u306b\u9632\u3052\u307e\u305b\u3093\uff08\u73fe\u5728\u306e\u72b6\u614b\u3057\u304b\u30c1\u30a7\u30c3\u30af\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u7d50\u679c\u3068\u3057\u3066\u306e\u72b6\u614b\u306f\u78ba\u8a8d\u3067\u304d\u306a\u3044\u305f\u3081\uff09\u3002\u305f\u3060\u3057\u3001\u4e00\u90e8\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u66f8\u304d\u8fbc\u307f\u524d\u306b\u30d1\u30b9\u3092\u691c\u8a3c\u3059\u308b\u305f\u3081\u306b\u30c8\u30ea\u30ac\u30fc\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u306e\u8b58\u5225\uff1a<\/strong> \u6709\u52b9\u306a\u30c4\u30ea\u30fc\u306b\u306f\u3001\u6b63\u78ba\u306b1\u3064\u306e\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\uff08\u5916\u90e8\u30ad\u30fc\u304cnull\u306e\u30ce\u30fc\u30c9\uff09\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<h3>\ud83d\udcc9 null\u5024\u306e\u6271\u3044<\/h3>\n<p>\u968e\u5c64\u306e\u30eb\u30fc\u30c8\u306f\u51fa\u767a\u70b9\u3067\u3059\u3002\u6a19\u6e96\u7684\u306a\u518d\u5e30\u7684\u95a2\u4fc2\u3067\u306f\u3001\u30eb\u30fc\u30c8\u884c\u306e\u5916\u90e8\u30ad\u30fc\u5217\u306bnull\u5024\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30af\u30a8\u30ea\u51e6\u7406\uff1a<\/strong> \u3059\u3079\u3066\u306e\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u3092\u898b\u3064\u3051\u308b\u306b\u306f\u3001\u5916\u90e8\u30ad\u30fc\u304cNULL\u306e\u884c\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\uff1a<\/strong> \u89aa\u3092\u793a\u3059\u3088\u3046\u306a\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u5916\u90e8\u30ad\u30fc\u306b\u8a2d\u5b9a\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u30020\u3084-1\u306a\u3069\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f\u8aa4\u89e3\u3092\u62db\u304d\u3001\u30c7\u30fc\u30bf\u6574\u5408\u6027\u306e\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li><strong>\u6574\u5408\u6027\uff1a<\/strong> \u5916\u90e8\u30ad\u30fc\u5217\u306bnull\u3092\u8a31\u5bb9\u3059\u308b\u3088\u3046\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002NOT NULL\u5236\u7d04\u3092\u8a2d\u3051\u308b\u3068\u3001\u968e\u5c64\u30e2\u30c7\u30eb\u304c\u7834\u7dbb\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\ud83d\udcc8 \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30a4\u30f3\u30c7\u30c3\u30af\u30b9<\/h3>\n<p>\u30c7\u30fc\u30bf\u304c\u5897\u3048\u308b\u306b\u3064\u308c\u3066\u3001\u518d\u5e30\u69cb\u9020\u306e\u30af\u30a8\u30ea\u306f\u9045\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u5b9a\u306e\u30ce\u30fc\u30c9\u306e\u3059\u3079\u3066\u306e\u5b50\u5b6b\u3092\u691c\u7d22\u3059\u308b\u5358\u7d14\u306a\u30af\u30a8\u30ea\u3067\u3082\u3001\u591a\u304f\u306e\u7d50\u5408\u3084\u518d\u5e30\u30af\u30a8\u30ea\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u6700\u9069\u5316\u6226\u7565\uff1a<\/strong><\/p>\n<ul>\n<li><strong>\u5916\u90e8\u30ad\u30fc\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\uff1a<\/strong> \u89aa\u53c2\u7167\u3092\u4fdd\u6301\u3059\u308b\u5217\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5b50\u30ce\u30fc\u30c9\u306e\u691c\u7d22\u304c\u9ad8\u901f\u5316\u3055\u308c\u307e\u3059\u3002<\/li>\n<li><strong>\u7269\u5316\u30d1\u30b9\uff1a<\/strong> \u4e00\u90e8\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u968e\u5c64\u306e\u5b8c\u5168\u306a\u30d1\u30b9\u3092\u5225\u3005\u306e\u5217\u306b\u4fdd\u5b58\u3057\u307e\u3059\uff08\u4f8b\uff1a&#8221;\/1\/5\/12\/20&#8243;\uff09\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6587\u5b57\u5217\u30d9\u30fc\u30b9\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u304c\u9ad8\u901f\u5316\u3055\u308c\u307e\u3059\u304c\u3001\u633f\u5165\u3054\u3068\u306b\u66f4\u65b0\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li><strong>\u30cd\u30b9\u30c8\u30bb\u30c3\u30c8\uff1a<\/strong> \u6df1\u3055\u3092\u8868\u3059\u305f\u3081\u306b\u5de6\u3068\u53f3\u306e\u6570\u5024\u3092\u4f7f\u7528\u3059\u308b\u4ee3\u66ff\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3059\u3002\u691c\u7d22\u306b\u306f\u9ad8\u901f\u3067\u3059\u304c\u3001\u633f\u5165\u306b\u306f\u9045\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<li><strong>\u30af\u30a8\u30ea\u306e\u6df1\u3055\uff1a<\/strong> \u30af\u30a8\u30ea\u5185\u306e\u518d\u5e30\u306e\u6df1\u3055\u3092\u5236\u9650\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4e0a\u9650\u304c\u306a\u3051\u308c\u3070\u3001\u7121\u9650\u30eb\u30fc\u30d7\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u3092\u30af\u30e9\u30c3\u30b7\u30e5\u3055\u305b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\ud83d\udd0d \u518d\u5e30\u7684\u30c7\u30fc\u30bf\u306e\u7167\u4f1a<\/h2>\n<p>\u968e\u5c64\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306f\u3001\u5e73\u5766\u306a\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3088\u308a\u3082\u8907\u96d1\u3067\u3059\u3002\u6a19\u6e96\u7684\u306aJOIN\u306f1\u30ec\u30d9\u30eb\u306b\u306e\u307f\u5bfe\u5fdc\u3057\u307e\u3059\u304c\u3001\u8907\u6570\u306e\u30ec\u30d9\u30eb\u3067\u306f\u7279\u5225\u306a\u8ad6\u7406\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3>\ud83d\udd04 \u81ea\u5df1\u7d50\u5408<\/h3>\n<p>\u6700\u3082\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u81ea\u5206\u81ea\u8eab\u3068\u7d50\u5408\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u30c6\u30fc\u30d6\u30eb\u3092\u89aa\u3068\u3057\u30661\u56de\u3001\u5b50\u3068\u3057\u30661\u56de\u5225\u540d\u3092\u4ed8\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>1\u30ec\u30d9\u30eb\uff1a<\/strong>\u30c6\u30fc\u30d6\u30eb\u3092\u81ea\u5206\u81ea\u8eab\u30681\u56de\u7d50\u5408\u3057\u3066\u3001\u76f4\u8fd1\u306e\u89aa\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u8907\u6570\u30ec\u30d9\u30eb\uff1a<\/strong>\u8907\u6570\u306e\u7d50\u5408\u304c\u5fc5\u8981\u3068\u306a\u308a\u3001\u3059\u3050\u306b\u6271\u3044\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<li><strong>\u6b20\u70b9\uff1a<\/strong>\u5fc5\u8981\u306a\u7d50\u5408\u306e\u6570\u306f\u3001\u968e\u5c64\u306e\u6df1\u3055\u306b\u7b49\u3057\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\ud83d\udd01 \u518d\u5e30\u7684\u5171\u901a\u30c6\u30fc\u30d6\u30eb\u5f0f\uff08CTE\uff09<\/h3>\n<p>\u73fe\u4ee3\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u306f\u518d\u5e30\u7684CTE\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u7d50\u5408\u7d50\u679c\u304c\u898b\u3064\u304b\u3089\u306a\u304f\u306a\u308b\u307e\u3067\u3001\u30af\u30a8\u30ea\u304c\u81ea\u5206\u81ea\u8eab\u3068UNION ALL\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30a2\u30f3\u30ab\u30fc\u9805\u76ee\uff1a<\/strong>\u518d\u5e30\u306e\u51fa\u767a\u70b9\uff08\u901a\u5e38\u306f\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\uff09\u3002<\/li>\n<li><strong>\u518d\u5e30\u7684\u9805\u76ee\uff1a<\/strong>\u7d50\u679c\u3092\u30c6\u30fc\u30d6\u30eb\u306b\u623b\u3057\u3066\u6b21\u306e\u30ec\u30d9\u30eb\u3092\u898b\u3064\u3051\u308b\u305f\u3081\u306b\u7d50\u5408\u3059\u308b\u30af\u30a8\u30ea\u306e\u90e8\u5206\u3002<\/li>\n<li><strong>\u7d42\u4e86\u6761\u4ef6\uff1a<\/strong>\u4e00\u81f4\u3059\u308b\u884c\u304c\u898b\u3064\u304b\u3089\u306a\u304f\u306a\u308b\u3068\u3001\u30af\u30a8\u30ea\u306f\u505c\u6b62\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u5229\u70b9\uff1a<\/strong>\u4e8b\u524d\u306b\u6df1\u3055\u3092\u77e5\u3089\u306a\u304f\u3066\u3082\u3001\u4efb\u610f\u306e\u6df1\u3055\u306e\u968e\u5c64\u3092\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\ud83d\udee1\ufe0f \u30c7\u30fc\u30bf\u6574\u5408\u6027\u3068\u5236\u7d04<\/h2>\n<p>\u81ea\u5df1\u53c2\u7167\u30c6\u30fc\u30d6\u30eb\u306e\u6574\u5408\u6027\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u89aa\u304c\u524a\u9664\u3055\u308c\u305f\u5834\u5408\u3001\u5b50\u306f\u3069\u3046\u306a\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<h3>\ud83d\uddd1\ufe0f \u524a\u9664\u306e\u4f1d\u64ad<\/h3>\n<p>\u89aa\u884c\u304c\u524a\u9664\u3055\u308c\u305f\u3068\u304d\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u5b50\u884c\u3092\u3069\u3046\u6271\u3046\u304b\u3092\u6c7a\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li><strong>RESTRICT\uff1a<\/strong>\u5b50\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u3001\u89aa\u306e\u524a\u9664\u3092\u7981\u6b62\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u306f\u4fdd\u8b77\u3055\u308c\u307e\u3059\u304c\u3001\u5fc5\u8981\u306a\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3092\u59a8\u3052\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li><strong>CASCADE\uff1a<\/strong>\u89aa\u304c\u524a\u9664\u3055\u308c\u308b\u3068\u3001\u3059\u3079\u3066\u306e\u5b50\u884c\u304c\u524a\u9664\u3055\u308c\u307e\u3059\u3002\u6df1\u3044\u968e\u5c64\u3067\u306f\u3001\u8aa4\u3063\u3066\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6d88\u53bb\u3057\u3066\u3057\u307e\u3046\u5371\u967a\u6027\u304c\u3042\u308b\u305f\u3081\u5371\u967a\u3067\u3059\u3002<\/li>\n<li><strong>SET NULL\uff1a<\/strong>\u5b50\u306e\u5916\u90e8\u30ad\u30fc\u3092NULL\u306b\u8a2d\u5b9a\u3057\u3001\u65b0\u3057\u3044\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u4fdd\u6301\u3059\u308b\u306b\u306f\u3001\u3053\u308c\u304c\u3057\u3070\u3057\u3070\u6700\u3082\u5b89\u5168\u306a\u9078\u629e\u3067\u3059\u3002<\/li>\n<li><strong>\u30c7\u30d5\u30a9\u30eb\u30c8\u3092\u8a2d\u5b9a:<\/strong>\u5916\u90e8\u30ad\u30fc\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\uff08\u4f8b\uff1a\u7279\u5b9a\u306e\u5b64\u7acb\u3057\u305f\u30ab\u30c6\u30b4\u30ea\uff09\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\ud83d\udd12 \u66f4\u65b0\u5236\u7d04<\/h3>\n<p>\u89aa\u884c\u306e\u4e3b\u30ad\u30fc\u3092\u5909\u66f4\u3059\u308b\u306e\u306f\u5371\u967a\u3067\u3059\u3002\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306eID\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u3001\u305d\u306e\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u53c2\u7167\u3059\u308b\u3059\u3079\u3066\u306e\u5f93\u696d\u54e1\u30ec\u30b3\u30fc\u30c9\u306eID\u3082\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64:<\/strong>\u3059\u3079\u3066\u306e\u53c2\u7167\u304c\u540c\u6642\u306b\u66f4\u65b0\u3055\u308c\u308b\u3088\u3046\u306b\u3001\u66f4\u65b0\u3092\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3067\u51e6\u7406\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c8\u30ea\u30ac\u30fc:<\/strong>ID\u306e\u5909\u66f4\u306e\u4f1d\u64ad\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u306b\u3088\u308a\u8907\u96d1\u6027\u304c\u5897\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9:<\/strong>\u518d\u5e30\u69cb\u9020\u306e\u4e3b\u30ad\u30fc\u3092\u66f4\u65b0\u3059\u308b\u5834\u5408\u306f\u3001\u53ef\u80fd\u306a\u9650\u308a\u907f\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u5f93\u696d\u54e1\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306a\u81ea\u7136\u30ad\u30fc\u3067\u306f\u306a\u304f\u3001\u30b5\u30ed\u30b2\u30fc\u30c8\u30ad\u30fc\uff08\u81ea\u52d5\u5897\u5206\u6574\u6570\uff09\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<h2>\ud83d\udea7 \u4e00\u822c\u7684\u306a\u554f\u984c\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/h2>\n<p>\u614e\u91cd\u306a\u8a2d\u8a08\u3092\u3057\u3066\u3082\u3001\u958b\u767a\u3084\u4fdd\u5b88\u4e2d\u306b\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u2753 \u6728\u306e\u6df1\u3055\u3092\u3069\u3046\u3084\u3063\u3066\u8abf\u3079\u307e\u3059\u304b\uff1f<\/h3>\n<p>\u7279\u5b9a\u306e\u884c\u306e\u30ec\u30d9\u30eb\u3092\u8abf\u3079\u308b\u306b\u306f\u3001\u305d\u306e\u884c\u304b\u3089\u30eb\u30fc\u30c8\u307e\u3067\u4e0a\u65b9\u5411\u306b\u305f\u3069\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u79fb\u52d5\u56de\u6570\u3092\u6570\u3048\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30af\u30a8\u30ea\u30a2\u30d7\u30ed\u30fc\u30c1:<\/strong>\u4e0a\u65b9\u5411\u306b\u79fb\u52d5\u3059\u308b\u969b\u306b\u884c\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u518d\u5e30\u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a2\u30d7\u30ed\u30fc\u30c1:<\/strong>\u633f\u5165\u6642\u306b\u6df1\u3055\u3092\u30ab\u30e9\u30e0\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30af\u30a8\u30ea\u6642\u9593\u306f\u77ed\u7e2e\u3055\u308c\u307e\u3059\u304c\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\u2753 \u5b64\u7acb\u30ce\u30fc\u30c9\u306f\u3069\u3046\u51e6\u7406\u3057\u307e\u3059\u304b\uff1f<\/h3>\n<p>\u5b64\u7acb\u30ce\u30fc\u30c9\u3068\u306f\u3001\u5916\u90e8\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u89aa\u3092\u6307\u3057\u3066\u3044\u308b\u884c\u306e\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u901a\u5e38\u3001\u30d0\u30b0\u3084\u624b\u52d5\u3067\u306e\u30c7\u30fc\u30bf\u5165\u529b\u30df\u30b9\u306b\u3088\u3063\u3066\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u691c\u8a3c:<\/strong>\u5b9a\u671f\u7684\u306a\u6574\u5408\u6027\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c\u3057\u3001\u5916\u90e8\u30ad\u30fc\u304c\u3069\u306e\u4e3b\u30ad\u30fc\u3068\u3082\u4e00\u81f4\u3057\u306a\u3044\u884c\u3092\u7279\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u56de\u5fa9:<\/strong>\u65b9\u91dd\u3092\u6c7a\u5b9a\u3057\u307e\u3059\uff1a\u30eb\u30fc\u30c8\u30ab\u30c6\u30b4\u30ea\u306b\u79fb\u52d5\u3059\u308b\u3001\u524a\u9664\u3059\u308b\u3001\u307e\u305f\u306f\u30ec\u30d3\u30e5\u30fc\u7528\u306b\u30d5\u30e9\u30b0\u3092\u7acb\u3066\u308b\u3002<\/li>\n<\/ul>\n<h3>\u2753 \u6642\u9593\u304c\u7d4c\u3064\u306b\u3064\u308c\u3066\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4f4e\u4e0b\u3059\u308b<\/h3>\n<p>\u6728\u304c\u5927\u304d\u304f\u306a\u308b\u306b\u3064\u308c\u3066\u3001\u6728\u5168\u4f53\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u30af\u30a8\u30ea\u306f\u9045\u304f\u306a\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30ad\u30e3\u30c3\u30b7\u30e5:<\/strong>\u983b\u7e41\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u968e\u5c64\u69cb\u9020\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e1\u30e2\u30ea\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30a2\u30fc\u30ab\u30a4\u30d6:<\/strong>\u968e\u5c64\u306e\u6b74\u53f2\u7684\u307e\u305f\u306f\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u90e8\u5206\u3092\u30a2\u30fc\u30ab\u30a4\u30d6\u30c6\u30fc\u30d6\u30eb\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30cb\u30f3\u30b0\uff1a<\/strong> \u30c7\u30fc\u30bf\u304c\u975e\u5e38\u306b\u5927\u304d\u3044\u5834\u5408\u306f\u3001\u30eb\u30fc\u30c8\u30ab\u30c6\u30b4\u30ea\u3054\u3068\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5206\u5272\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<h2>\ud83d\udcdd \u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306e\u8981\u7d04<\/h2>\n<p>\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u5805\u7262\u306a\u5b9f\u88c5\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><strong>\u4ee3\u66ff\u30ad\u30fc\u3092\u4f7f\u7528\u3059\u308b\uff1a<\/strong> \u4e3b\u30ad\u30fc\u306b\u306f\u3001\u30d3\u30b8\u30cd\u30b9\u30ad\u30fc\u3088\u308a\u3082\u81ea\u52d5\u5897\u5206\u6574\u6570\u3092\u512a\u5148\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>NULL\u3092\u8a31\u53ef\u3059\u308b\uff1a<\/strong> \u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u3001\u5916\u90e8\u30ad\u30fc\u5217\u304cNULL\u5024\u3092\u8a31\u53ef\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>\u5916\u90e8\u30ad\u30fc\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\uff1a<\/strong> \u89aa\u53c2\u7167\u3092\u4fdd\u6301\u3059\u308b\u5217\u306b\u306f\u3001\u5e38\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>\u30eb\u30fc\u30d7\u306e\u691c\u8a3c\uff1a<\/strong> \u5186\u5f62\u53c2\u7167\uff08A \u2192 B \u2192 A\uff09\u3092\u9632\u3050\u305f\u3081\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u88c5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>\u518d\u5e30\u306e\u6df1\u3055\u5236\u9650\uff1a<\/strong> \u30af\u30a8\u30ea\u5185\u306e\u518d\u5e30\u306e\u6df1\u3055\u3092\u5236\u9650\u3057\u3066\u3001\u30b9\u30bf\u30c3\u30af\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3092\u9632\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>\u30b9\u30ad\u30fc\u30de\u3092\u6587\u66f8\u5316\u3059\u308b\uff1a<\/strong> ERD\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5185\u3067\u3001\u3069\u306e\u5217\u304c\u81ea\u5df1\u53c2\u7167\u3057\u3066\u3044\u308b\u304b\u3092\u660e\u78ba\u306b\u30de\u30fc\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>\u524a\u9664\u306e\u8a08\u753b\uff1a<\/strong> \u89aa\u30ce\u30fc\u30c9\u306e\u524a\u9664\u6642\u306b\u3001\u9023\u9396\u524a\u9664\u306e\u30eb\u30fc\u30eb\u307e\u305f\u306fNULL\u8a2d\u5b9a\u306e\u30eb\u30fc\u30eb\u3092\u660e\u78ba\u306b\u5b9a\u7fa9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>\u6df1\u3044\u968e\u5c64\u306e\u30c6\u30b9\u30c8\uff1a<\/strong> \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u7dad\u6301\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3001\u5c11\u306a\u304f\u3068\u308210\u6bb5\u968e\u306e\u6df1\u3055\u3067\u30af\u30a8\u30ea\u3092\u30c6\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<h2>\ud83d\udd2e \u4eca\u5f8c\u306e\u691c\u8a0e\u4e8b\u9805<\/h2>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u6280\u8853\u306f\u7d99\u7d9a\u7684\u306b\u9032\u5316\u3057\u3066\u3044\u307e\u3059\u3002\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u6982\u5ff5\u306f\u5909\u308f\u3089\u306a\u3044\u3082\u306e\u306e\u3001\u305d\u308c\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u306f\u6539\u5584\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30b0\u30e9\u30d5\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff1a<\/strong> \u4e00\u90e8\u306e\u73fe\u4ee3\u7684\u306a\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u95a2\u4fc2\u6027\u3092\u7b2c\u4e00\u7d1a\u306e\u5b58\u5728\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002\u518d\u5e30\u7684\u306a\u30d1\u30b9\u3092\u3001SQL\u306e\u8907\u96d1\u3055\u3092\u4f34\u308f\u305a\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>JSON\u30b5\u30dd\u30fc\u30c8\uff1a<\/strong> \u65b0\u3057\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u3067\u306f\u3001\u968e\u5c64\u30c7\u30fc\u30bf\u3092JSON\u30ab\u30e9\u30e0\u306b\u683c\u7d0d\u3067\u304d\u308b\u305f\u3081\u3001\u6df1\u304f\u30cd\u30b9\u30c8\u3055\u308c\u305f\u69cb\u9020\u306e\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3092\u7c21\u7d20\u5316\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>ORM\u306e\u6539\u5584\uff1a<\/strong> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30de\u30c3\u30d1\u30fc\u306f\u3001\u518d\u5e30\u7684\u95a2\u4fc2\u3092\u81ea\u52d5\u7684\u306b\u51e6\u7406\u3059\u308b\u80fd\u529b\u304c\u5411\u4e0a\u3057\u3066\u304a\u308a\u3001\u30dc\u30a4\u30e9\u30fc\u30d7\u30ec\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u524a\u6e1b\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u9032\u6b69\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u518d\u5e30\u7684\u95a2\u4fc2\u306e\u30b3\u30a2\u30ed\u30b8\u30c3\u30af\u306f\u540c\u3058\u307e\u307e\u3067\u3059\u3002\u4e3b\u30ad\u30fc\u3001\u5916\u90e8\u30ad\u30fc\u3001\u30c6\u30fc\u30d6\u30eb\u95a2\u4fc2\u306e\u4e0b\u5c64\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u306f\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u6271\u3046\u6280\u8853\u8005\u306b\u3068\u3063\u3066\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u539f\u5247\u306b\u5f93\u3046\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u968e\u5c64\u3092\u6271\u3048\u308b\u3060\u3051\u306e\u67d4\u8edf\u6027\u3092\u6301\u3061\u3064\u3064\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u4fdd\u5b88\u6027\u3092\u7dad\u6301\u3067\u304d\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306f\u3001\u6b63\u78ba\u304b\u3064\u614e\u91cd\u306b\u4f7f\u7528\u3055\u308c\u308b\u9650\u308a\u3001\u30c7\u30fc\u30bf\u30e2\u30c7\u30ea\u30f3\u30b0\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u8a08\u306e\u8907\u96d1\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u304a\u3044\u3066\u3001\u81ea\u5df1\u53c2\u7167\u30a8\u30f3&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1672,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_title":"ERD\u306b\u304a\u3051\u308b\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1a\u5b8c\u5168\u30ac\u30a4\u30c9 \ud83d\udd17","_yoast_wpseo_metadesc":"ERD\u306b\u304a\u3044\u3066\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304a\u3088\u3073\u518d\u5e30\u7684\u95a2\u4fc2\u3092\u8a2d\u8a08\u30fb\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3001\u968e\u5c64\u306e\u6271\u3044\u65b9\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30b3\u30c4\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[86],"tags":[82,85],"class_list":["post-1671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-erd","tag-academic","tag-erd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ERD\u306b\u304a\u3051\u308b\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1a\u5b8c\u5168\u30ac\u30a4\u30c9 \ud83d\udd17<\/title>\n<meta name=\"description\" content=\"ERD\u306b\u304a\u3044\u3066\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304a\u3088\u3073\u518d\u5e30\u7684\u95a2\u4fc2\u3092\u8a2d\u8a08\u30fb\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3001\u968e\u5c64\u306e\u6271\u3044\u65b9\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30b3\u30c4\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ERD\u306b\u304a\u3051\u308b\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1a\u5b8c\u5168\u30ac\u30a4\u30c9 \ud83d\udd17\" \/>\n<meta property=\"og:description\" content=\"ERD\u306b\u304a\u3044\u3066\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304a\u3088\u3073\u518d\u5e30\u7684\u95a2\u4fc2\u3092\u8a2d\u8a08\u30fb\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3001\u968e\u5c64\u306e\u6271\u3044\u65b9\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30b3\u30c4\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/\" \/>\n<meta property=\"og:site_name\" content=\"Go Diagram Japanese - Proven AI Workflows &amp; Modern Tech Methods\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-27T07:12:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1664\" \/>\n\t<meta property=\"og:image:height\" content=\"928\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"vpadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"vpadmin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/\"},\"author\":{\"name\":\"vpadmin\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#\/schema\/person\/05a897b07530dd5607bd8a29719b1d6c\"},\"headline\":\"ERD\u30ac\u30a4\u30c9\uff1a\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1aERD\u306b\u304a\u3051\u308b\u518d\u5e30\u7684\u95a2\u4fc2\u306e\u7406\u89e3\",\"datePublished\":\"2026-03-27T07:12:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/\"},\"wordCount\":67,\"publisher\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg\",\"keywords\":[\"academic\",\"erd\"],\"articleSection\":[\"ERD\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/\",\"url\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/\",\"name\":\"ERD\u306b\u304a\u3051\u308b\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1a\u5b8c\u5168\u30ac\u30a4\u30c9 \ud83d\udd17\",\"isPartOf\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg\",\"datePublished\":\"2026-03-27T07:12:07+00:00\",\"description\":\"ERD\u306b\u304a\u3044\u3066\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304a\u3088\u3073\u518d\u5e30\u7684\u95a2\u4fc2\u3092\u8a2d\u8a08\u30fb\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3001\u968e\u5c64\u306e\u6271\u3044\u65b9\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30b3\u30c4\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#primaryimage\",\"url\":\"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg\",\"contentUrl\":\"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg\",\"width\":1664,\"height\":928},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.go-diagram.com\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ERD\u30ac\u30a4\u30c9\uff1a\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1aERD\u306b\u304a\u3051\u308b\u518d\u5e30\u7684\u95a2\u4fc2\u306e\u7406\u89e3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#website\",\"url\":\"https:\/\/www.go-diagram.com\/ja\/\",\"name\":\"Go Diagram Japanese - Proven AI Workflows &amp; Modern Tech Methods\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.go-diagram.com\/ja\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#organization\",\"name\":\"Go Diagram Japanese - Proven AI Workflows &amp; Modern Tech Methods\",\"url\":\"https:\/\/www.go-diagram.com\/ja\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2025\/03\/go-diagram-logo.png\",\"contentUrl\":\"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2025\/03\/go-diagram-logo.png\",\"width\":340,\"height\":62,\"caption\":\"Go Diagram Japanese - Proven AI Workflows &amp; Modern Tech Methods\"},\"image\":{\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#\/schema\/person\/05a897b07530dd5607bd8a29719b1d6c\",\"name\":\"vpadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.go-diagram.com\/ja\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56e0eb902506d9cea7c7e209205383146b8e81c0ef2eff693d9d5e0276b3d7e3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56e0eb902506d9cea7c7e209205383146b8e81c0ef2eff693d9d5e0276b3d7e3?s=96&d=mm&r=g\",\"caption\":\"vpadmin\"},\"sameAs\":[\"https:\/\/www.go-diagram.com\"],\"url\":\"https:\/\/www.go-diagram.com\/ja\/author\/vpadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ERD\u306b\u304a\u3051\u308b\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1a\u5b8c\u5168\u30ac\u30a4\u30c9 \ud83d\udd17","description":"ERD\u306b\u304a\u3044\u3066\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304a\u3088\u3073\u518d\u5e30\u7684\u95a2\u4fc2\u3092\u8a2d\u8a08\u30fb\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3001\u968e\u5c64\u306e\u6271\u3044\u65b9\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30b3\u30c4\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/","og_locale":"ja_JP","og_type":"article","og_title":"ERD\u306b\u304a\u3051\u308b\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1a\u5b8c\u5168\u30ac\u30a4\u30c9 \ud83d\udd17","og_description":"ERD\u306b\u304a\u3044\u3066\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304a\u3088\u3073\u518d\u5e30\u7684\u95a2\u4fc2\u3092\u8a2d\u8a08\u30fb\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3001\u968e\u5c64\u306e\u6271\u3044\u65b9\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30b3\u30c4\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002","og_url":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/","og_site_name":"Go Diagram Japanese - Proven AI Workflows &amp; Modern Tech Methods","article_published_time":"2026-03-27T07:12:07+00:00","og_image":[{"width":1664,"height":928,"url":"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg","type":"image\/jpeg"}],"author":"vpadmin","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"vpadmin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#article","isPartOf":{"@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/"},"author":{"name":"vpadmin","@id":"https:\/\/www.go-diagram.com\/ja\/#\/schema\/person\/05a897b07530dd5607bd8a29719b1d6c"},"headline":"ERD\u30ac\u30a4\u30c9\uff1a\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1aERD\u306b\u304a\u3051\u308b\u518d\u5e30\u7684\u95a2\u4fc2\u306e\u7406\u89e3","datePublished":"2026-03-27T07:12:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/"},"wordCount":67,"publisher":{"@id":"https:\/\/www.go-diagram.com\/ja\/#organization"},"image":{"@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#primaryimage"},"thumbnailUrl":"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg","keywords":["academic","erd"],"articleSection":["ERD"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/","url":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/","name":"ERD\u306b\u304a\u3051\u308b\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1a\u5b8c\u5168\u30ac\u30a4\u30c9 \ud83d\udd17","isPartOf":{"@id":"https:\/\/www.go-diagram.com\/ja\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#primaryimage"},"image":{"@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#primaryimage"},"thumbnailUrl":"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg","datePublished":"2026-03-27T07:12:07+00:00","description":"ERD\u306b\u304a\u3044\u3066\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304a\u3088\u3073\u518d\u5e30\u7684\u95a2\u4fc2\u3092\u8a2d\u8a08\u30fb\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002\u30b9\u30ad\u30fc\u30de\u8a2d\u8a08\u3001\u968e\u5c64\u306e\u6271\u3044\u65b9\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30b3\u30c4\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#primaryimage","url":"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg","contentUrl":"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2026\/03\/self-referencing-entities-erd-chalkboard-infographic.jpg","width":1664,"height":928},{"@type":"BreadcrumbList","@id":"https:\/\/www.go-diagram.com\/ja\/self-referencing-entities-recursive-relationships-erd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.go-diagram.com\/ja\/"},{"@type":"ListItem","position":2,"name":"ERD\u30ac\u30a4\u30c9\uff1a\u81ea\u5df1\u53c2\u7167\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff1aERD\u306b\u304a\u3051\u308b\u518d\u5e30\u7684\u95a2\u4fc2\u306e\u7406\u89e3"}]},{"@type":"WebSite","@id":"https:\/\/www.go-diagram.com\/ja\/#website","url":"https:\/\/www.go-diagram.com\/ja\/","name":"Go Diagram Japanese - Proven AI Workflows &amp; Modern Tech Methods","description":"","publisher":{"@id":"https:\/\/www.go-diagram.com\/ja\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.go-diagram.com\/ja\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.go-diagram.com\/ja\/#organization","name":"Go Diagram Japanese - Proven AI Workflows &amp; Modern Tech Methods","url":"https:\/\/www.go-diagram.com\/ja\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.go-diagram.com\/ja\/#\/schema\/logo\/image\/","url":"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2025\/03\/go-diagram-logo.png","contentUrl":"https:\/\/www.go-diagram.com\/ja\/wp-content\/uploads\/sites\/4\/2025\/03\/go-diagram-logo.png","width":340,"height":62,"caption":"Go Diagram Japanese - Proven AI Workflows &amp; Modern Tech Methods"},"image":{"@id":"https:\/\/www.go-diagram.com\/ja\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.go-diagram.com\/ja\/#\/schema\/person\/05a897b07530dd5607bd8a29719b1d6c","name":"vpadmin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.go-diagram.com\/ja\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56e0eb902506d9cea7c7e209205383146b8e81c0ef2eff693d9d5e0276b3d7e3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56e0eb902506d9cea7c7e209205383146b8e81c0ef2eff693d9d5e0276b3d7e3?s=96&d=mm&r=g","caption":"vpadmin"},"sameAs":["https:\/\/www.go-diagram.com"],"url":"https:\/\/www.go-diagram.com\/ja\/author\/vpadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/posts\/1671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/comments?post=1671"}],"version-history":[{"count":0,"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/posts\/1671\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/media\/1672"}],"wp:attachment":[{"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/media?parent=1671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/categories?post=1671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.go-diagram.com\/ja\/wp-json\/wp\/v2\/tags?post=1671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}