<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>SQL</anon>
    <anon>Python</anon>
    <anon>Django</anon>
  </categories>
  <description>SQL では，NULLに比較述語を適用すると，常にunknownになります．これは分かりにくい印象がありますが，3値論理に準拠すれば明らかです． この性質により，例えば Django で以下のように apple_id に unique と null が共存できます．ここで，apple_id は必須ではないけれども他のりんごとは重複しない数値のことです． from django.db import models class Apple(models.Model): apple_id = models.IntegerField(unique=True, null=True) なお，以下の環境で動作…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2022%2F12%2F07%2F221320&quot; title=&quot;SQL で NULL との比較が unknown になる - みーのぺーじ&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>2022-12-07 22:13:20</published>
  <title>SQL で NULL との比較が unknown になる</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2022/12/07/221320</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
