<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>SQL</anon>
  </categories>
  <description>SQLの INTERSECT の使い道って何だろう？と。。。 よくあるテーブルの抽出結果を任意のテーブルに insert するのは、 INSERT INTO tableA( column1 ,column2 ) SELECT column1 ,column2 FROM tableB 登録で重複が起きる時、UPSERT文や以下のようなMERGE文、 DBの種類によって書き方に多少の違いがあるにせよだいたい以下のようにして実行しているが、 MERGE INTO tableA USING tableB ON 結合条件 WHEN MATCHED THEN update文 WHEN NOT MATCHE…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2026%2F02%2F06%2F215635&quot; title=&quot;INTERSECT の使い道 - Oboe吹きプログラマの黙示録&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>2026-02-06 21:56:35</published>
  <title>INTERSECT の使い道</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2026/02/06/215635</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
