<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ser1zw</author_name>
  <author_url>https://blog.hatena.ne.jp/ser1zw/</author_url>
  <blog_title>ser1zw's blog</blog_title>
  <blog_url>https://ser1zw.hatenablog.com/</blog_url>
  <categories>
    <anon>SQL</anon>
  </categories>
  <description>環境 PostgreSQL 15 本記事の機能はPostgreSQLで試していますが、is distinct from はANSI標準なので、他のDBMSでもサポートされていれば使えます SQLで null を含むカラムへの条件指定 ご存知のとおり、SQLでの値の比較の際に = とか &lt;&gt; とかで null と比較すると、結果は常に null になります。 このため、null を含むカラムに対して「ある値に一致しない行を、null も含めて出したい」みたいなことをやる場合は is null の条件も加えて比較する必要があります。 例： テーブル nantoka_data -- 元データ sel…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fser1zw.hatenablog.com%2Fentry%2F2023%2F07%2F16%2F061710&quot; title=&quot;SQLで is null or 〜 を一発でやる is distinct from の話 - ser1zw&amp;#39;s blog&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>2023-07-16 06:17:10</published>
  <title>SQLで is null or 〜 を一発でやる is distinct from の話</title>
  <type>rich</type>
  <url>https://ser1zw.hatenablog.com/entry/2023/07/16/061710</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
