{"description":"SQL\u306e INTERSECT \u306e\u4f7f\u3044\u9053\u3063\u3066\u4f55\u3060\u308d\u3046\uff1f\u3068\u3002\u3002\u3002 \u3088\u304f\u3042\u308b\u30c6\u30fc\u30d6\u30eb\u306e\u62bd\u51fa\u7d50\u679c\u3092\u4efb\u610f\u306e\u30c6\u30fc\u30d6\u30eb\u306b insert \u3059\u308b\u306e\u306f\u3001 INSERT INTO tableA( column1 ,column2 ) SELECT column1 ,column2 FROM tableB \u767b\u9332\u3067\u91cd\u8907\u304c\u8d77\u304d\u308b\u6642\u3001UPSERT\u6587\u3084\u4ee5\u4e0b\u306e\u3088\u3046\u306aMERGE\u6587\u3001 DB\u306e\u7a2e\u985e\u306b\u3088\u3063\u3066\u66f8\u304d\u65b9\u306b\u591a\u5c11\u306e\u9055\u3044\u304c\u3042\u308b\u306b\u305b\u3088\u3060\u3044\u305f\u3044\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u5b9f\u884c\u3057\u3066\u3044\u308b\u304c\u3001 MERGE INTO tableA USING tableB ON \u7d50\u5408\u6761\u4ef6 WHEN MATCHED THEN update\u6587 WHEN NOT MATCHE\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2026%2F02%2F06%2F215635\" title=\"INTERSECT \u306e\u4f7f\u3044\u9053 - Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"posturan","version":"1.0","url":"https://oboe2uran.hatenablog.com/entry/2026/02/06/215635","categories":["SQL"],"title":"INTERSECT \u306e\u4f7f\u3044\u9053","height":"190","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/posturan/","image_url":null,"blog_url":"https://oboe2uran.hatenablog.com/","width":"100%","blog_title":"Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332","published":"2026-02-06 21:56:35","type":"rich","provider_name":"Hatena Blog"}