<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ro9rito</author_name>
  <author_url>https://blog.hatena.ne.jp/ro9rito/</author_url>
  <blog_title>ROXX開発者ブログ</blog_title>
  <blog_url>https://techblog.roxx.co.jp/</blog_url>
  <categories>
  </categories>
  <description>この記事は個人ブログと同じ内容です www.ritolab.com www.oreilly.co.jp 「SQL アンチパターン」という書籍を読んでいて、ナイーブツリー（素朴な木）という、ツリー構造（再帰的な階層構造）の表現について書かれた章があり面白かったので試してみました。 隣接リスト（adjacency list） よくある（んだけどツラいよねっていう）パターンとして「隣接リスト」というものが紹介されていました。これは、コメントのテーブルに親を識別するための parent_id をカラムに追加するというものです。 DDL create table comments ( comment_i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.roxx.co.jp%2Fentry%2F2022%2F02%2F28%2F191336&quot; title=&quot;閉包テーブル（closure table）でツリー構造を表現する - ROXX開発者ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/r/ro9rito/20220228/20220228143752.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-28 19:13:36</published>
  <title>閉包テーブル（closure table）でツリー構造を表現する</title>
  <type>rich</type>
  <url>https://techblog.roxx.co.jp/entry/2022/02/28/191336</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
