ðKazuhiro OSAWA @Yappo éµä¾¿çªå·API ä½ããã¨æã£ããã ãã©ãã¡ããã¨ä½ããªã DB ã«çªã£è¾¼ãã§ä½¿ã£ãæ¹ãè¯ãããä½ãã¢ããã¼ã·ã§ã³ã ãã¶ä½ã 2012-08-08 12:27:21
æ¦è¦ MS-Access ä¸ã§éµä¾¿çªå·ãä½æå¤æããããã«ã¯ãä½æå ¥åæ¯æ´æ©è½ãæä¾ããã¦ããã ããããå ã«ãªã£ã¦ããè¾æ¸ãã¡ã¤ã«ã®ã¢ãããã¼ããé ããããç¨éã«å¿ãã¦ã«ã¹ã¿ãã¤ãºããã«ã¯éçããããªã©ã®çç±ãããæ¥æ¬éµæ¿å ¬ç¤¾ãé å¸ãã¦ããéµä¾¿çªå·ãã¼ã¿ãå©ç¨ãã¦ããªãªã¸ãã«ã®éµä¾¿çªå·âä½æå¤ææ©è½ãå®è£ ããæ¹æ³ããåºãç¥ããã¦ããã æ¥æ¬éµæ¿å ¬ç¤¾ï¼å·çå½æãç¾ã»éµä¾¿äºæ¥æ ªå¼ä¼ç¤¾ï¼ãé å¸ãã¦ããéµä¾¿çªå·ãã¼ã¿ã¯åç´ãª CSV å½¢å¼ã®ãããå å·¥ããããããåã»ä¸ç´ã¯ã©ã¹ã® VBA ã®ç¥èãããã°ç°¡åã«å¿ç¨ãå¹ããã¨ããã®ããç§ãè¦èãããç¯å²ã§ã®ä¸è¬çãªèªç¥ã®ããã ã ãããæè¿ã«ãªã£ã¦ããµã¨ãããã¨ããå®éã«ãã® CSV ãã¼ã¿ãè¦ãæ©ä¼ãæããããã¤ãã®çåç¹ã»åé¡ç¹ãæµ®ãã³ä¸ãã£ã¦ããã ã¯ããã¦æ¥æ¬éµæ¿å ¬ç¤¾ã® CSV ãã¼ã¿ã¯ãæ¬å½ã«ä½¿ããããã®ã ãããï¼ ä»æ§ ã¾ããä»æ§ã確èªã
ãå©ç¨ä¸ã®ã注æ æ¬ãã¼ã¿ãã¡ã¤ã«ã¯ãéµä¾¿çªå·ã¨ä½æçã対å¿ããããã¼ã¿ãã¼ã¹ã§ãã ãã¦ã³ãã¼ããã¼ã¿ã¯ãCSVï¼å¯å¤é·ãã¼ã¿ï¼å½¢å¼ã®ãã¡ã¤ã«ãzipå½¢å¼ã§å§ç¸®ãã¦ä¿åãã¦ããã¾ãã ã使ç¨ã«ãªãããã³ã³ãã¥ã¼ã¿ã«é©åãã解åã½ããããç¨æããã ãã解åã®ä¸ã使ç¨ãã ããã æ¬ãã¼ã¿ãã¡ã¤ã«ã«ã¯æ¤ç´¢ã½ããã¯å«ã¾ãã¦ããã¾ããã®ã§ãæ¿ç¥ãã ããã å ¨å½ä¸æ¬ã®ãã¼ã¿ã¯12ä¸ä»¶ãããããä¸è¬çãªè¡¨è¨ç®ã½ããçã§ã¯å ¨ãã¼ã¿ãèªã¿è¾¼ããã¨ãã§ããªãå ´åãããã¾ãã ä¸è¬çãªè¡¨è¨ç®ã½ããçã§ã¯ãéµä¾¿çªå·ã示ãåãçºåã示ãåã«ããã¦ãä¸1ãããããã¯2ããã®ã0ãã00ãã表示ãããªãå ´åããå¹´ææ¥ã§è¡¨ç¤ºãããå ´åãããã¾ãã®ã§ãã注æãã ããã ãã¼ã¿ã®ç¨®é¡ å ¨å½ä¸æ¬ã®ãã¼ã¿ãã¡ã¤ã«
æ¬ç©ã® KEN_ALL.csv ã®å¦çãç°¡åã«åºæ¥ã Parse::JapanesePostalCode ããªãªã¼ã¹ãã 空åã® KEN_ALL.csv ãã¼ã ãåãã£ãã®ãè¨æ¶ã«æ°ããã°ããã§ããããã®éµæ¿ãããå ¬éãã¦ããéµä¾¿çªå·ãã¡ã¤ã«ãã«ã¸ã¥ã¢ã«ã«ãã¼ã¹åºæ¥ãã¢ã¸ã¥ã¼ã«ãä½ãã¾ããã https://metacpan.org/release/Parse-JapanesePostalCode https://github.com/yappo/p5-Parse-JapanesePostalCode 使ãæ¹ã¯ã¨ã¦ãç°¡å㧠use Parse::JapanesePostalCode; my $parser = Parse::JapanesePostalCode->new( file => 'KEN_ALL.csv' ); while (my $obj = $parser->fetch_ob
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}