<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kwatch</author_name>
  <author_url>https://blog.hatena.ne.jp/kwatch/</author_url>
  <blog_title>kなんとかの日記</blog_title>
  <blog_url>https://kwatch.hatenadiary.org/</blog_url>
  <categories>
    <anon>db</anon>
  </categories>
  <description>MySQL では unique key を指定していても NULL があると無視されるようだ。たとえば次のテーブルでは、name と deleted_at の組に unique key を指定している。 create table test1( id integer primary key auto_increment, name varchar(100) not null, deleted_at datetime, unique key (name, deleted_at) ); なのに、同じ値の組み合わせを入れてもエラーにならない。 mysql&gt; insert into test1 valu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkwatch.hatenadiary.org%2Fentry%2F20090204%2F1233763466&quot; title=&quot; MySQL では unique key が NULL を無視する - kなんとかの日記&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>2009-02-04 01:04:26</published>
  <title> MySQL では unique key が NULL を無視する</title>
  <type>rich</type>
  <url>https://kwatch.hatenadiary.org/entry/20090204/1233763466</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
