Skip to content

Instantly share code, notes, and snippets.

@kashitan
Created November 4, 2016 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kashitan/192a4cdc2b27c46f614fc41939544279 to your computer and use it in GitHub Desktop.
Save kashitan/192a4cdc2b27c46f614fc41939544279 to your computer and use it in GitHub Desktop.
-- 位置参照情報ダウンロードサービス(http://nlftp.mlit.go.jp/isj/)から
-- ダウンロードしたをデータを格納するテーブル
CREATE TABLE loc_ref_info(
pref varchar(100) -- 都道府県名
, city varchar(100) -- 市区町村名
, town varchar(100) -- 大字・町丁目名
, block varchar(100) -- 街区符号・地番
, coord_no integer -- 座標系番号
, x numeric -- X座標
, y numeric -- Y座標
, lat numeric -- 緯度
, lon numeric -- 経度
, display integer -- 住居表示フラグ
, representative integer -- 代表フラグ
, before_update integer -- 更新前履歴フラグ
, after_update integer -- 更新後履歴フラグ
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment