<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiririmode</author_name>
  <author_url>https://blog.hatena.ne.jp/kiririmode/</author_url>
  <blog_title>理系学生日記</blog_title>
  <blog_url>https://kiririmode.hatenablog.jp/</blog_url>
  <categories>
    <anon>db</anon>
  </categories>
  <description>CDTV のランキングデータを DB に突っ込むバッチ的プログラムを走らせておりましたところ、主キー制約違反でバッチが死にました。 元凶は 2010/08/07 付のランキングで、92 位がなぜか 2 つある。 ランキング用テーブルの主キーは日付 + 順位だったので、同じ順位が 2 つあると主キー制約違反で落ちるのは自然の摂理です。自然がぼくに牙をむいた。 ぼくは、これ CDTV の Web サイト側のミスなんじゃないかなって思ってるけど、真相は闇の中です。とにかく、この主キー制約違反をなんとかしないといけない。仕方がないので主キーに曲名も加えることにしましたが、sqlite で主キーを変更す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20100808%2Fp1&quot; title=&quot;sqlite でテーブルの主キーを変更する方法は？ - 理系学生日記&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/k/kiririmode/20100809/20100809233026.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-08-08 00:00:00</published>
  <title>sqlite でテーブルの主キーを変更する方法は？</title>
  <type>rich</type>
  <url>https://kiririmode.hatenablog.jp/entry/20100808/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
