<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kazu_voyage</author_name>
  <author_url>https://blog.hatena.ne.jp/kazu_voyage/</author_url>
  <blog_title>Webプログラマの備忘録 </blog_title>
  <blog_url>https://kazu-voyage.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>table1 as t1 id int item text table2 as t2 id int ts1_id int table1のデータを削除した時にtable2にゴミが残ってしまった場合に使います。 そんなゴミがでるものを作ってはいけませんが。。。 select t2.id from table2 as t2 left join table1 as t1 on t2.ts2_id = t1.id where t1.id is null でOKです。 table2にはあるけど、table1にはないデータの一覧が出力されます。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazu-voyage.hatenadiary.org%2Fentry%2F20090522&quot; title=&quot;mysqlで１つのテーブルにあって、もう１つのテーブルにないものを探 - Webプログラマの備忘録 &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-05-22 00:00:00</published>
  <title>mysqlで１つのテーブルにあって、もう１つのテーブルにないものを探</title>
  <type>rich</type>
  <url>https://kazu-voyage.hatenadiary.org/entry/20090522</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
