<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>babydaemons</author_name>
  <author_url>https://blog.hatena.ne.jp/babydaemons/</author_url>
  <blog_title>babydaemons’ blog</blog_title>
  <blog_url>https://babydaemons.hatenablog.com/</blog_url>
  <categories>
    <anon>SQLServer</anon>
  </categories>
  <description>はじめに地雷を撤去しておきましょう 結果論から行くと use ZIPDB select code, count(code) as count from dbo.zipcode_master group by code having count(code) &gt; 1 order by count(code) desc みたいなクエリを実行してみたら、重複レコードがある郵便番号が1525件も居やがります。orz なのでまちがっても、 郵便番号をPrimary Keyにしてはいけません！ 郵便番号マスタテーブルをつくっておく こんなクエリを実行すれば良いかと。 USE [ZIPDB] GO SET A…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbabydaemons.hatenablog.com%2Fentry%2F20110518%2FSQLServerBulkInsertZipCode&quot; title=&quot;日本郵便謹製のKEN_ALL.CSVをBULK INSERT一発で取り込む - babydaemons’ 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>2011-05-18 00:00:00</published>
  <title>日本郵便謹製のKEN_ALL.CSVをBULK INSERT一発で取り込む</title>
  <type>rich</type>
  <url>https://babydaemons.hatenablog.com/entry/20110518/SQLServerBulkInsertZipCode</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
