<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>architshin</author_name>
  <author_url>https://blog.hatena.ne.jp/architshin/</author_url>
  <blog_title>Archit!!</blog_title>
  <blog_url>https://architshin.hatenablog.com/</blog_url>
  <categories>
    <anon>Database</anon>
  </categories>
  <description>今かかわっているプロジェクトでのDB設計の話。 これは、前のプロジェクトでDB屋さんともめた内容でもあるのだが、主キーをどうするか。データ設計を行う際に、概念上の主キーというものがあり、それはその概念の中心属性であり、たいていは複合主キーとなることが多い。DB屋さんはこれをそのまま物理設計まで持ち込む。だから、テーブル構造というのは基本的に複合主キーとなっていることが多い。 まあ、これはこれでひとつのやり方なのだが、私はアプリケーションの開発(コーディング)、特にWEBアプリとなると、この複合主キーというのが扱いにくい。そこで、内部コードを作成して、主キーをこの内部コードで統一してしまう。概念…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farchitshin.hatenablog.com%2Fentry%2F20071128%2F1196228388&quot; title=&quot;テーブル主キー - Archit!!&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-11-28 14:39:48</published>
  <title>テーブル主キー</title>
  <type>rich</type>
  <url>https://architshin.hatenablog.com/entry/20071128/1196228388</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
