<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>midori_kasugano</author_name>
  <author_url>https://blog.hatena.ne.jp/midori_kasugano/</author_url>
  <blog_title>WEB開発初心者の成長記録</blog_title>
  <blog_url>https://midori-kasugano.hatenadiary.org/</blog_url>
  <categories>
    <anon>mysql</anon>
  </categories>
  <description>こんな↓テーブル構成のDBがあるとします。 ◎site_entry_categoriesテーブルのsite_entry_idにない値がsite_entriesテーブルのidに入っているデータのstatusを0にする。 (site_entry_idとidは同じデータが入る) mysql&gt; update site_entries set status = 0 where id not in ( select site_entry_id from site_entry_categories);分解解説。 (1) update site_entries set status = 0 →site_ent…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmidori-kasugano.hatenadiary.org%2Fentry%2F20100831%2F1283273076&quot; title=&quot;MySQL／難解なSQL文〜whereにnot in、selectを使ってinsertする - 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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/midori_kasugano/20100901/20100901015200.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-08-31 01:44:36</published>
  <title>MySQL／難解なSQL文〜whereにnot in、selectを使ってinsertする</title>
  <type>rich</type>
  <url>https://midori-kasugano.hatenadiary.org/entry/20100831/1283273076</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
