PostgreSQL
ãã¼ã¿ãã¼ã¹ã¸ã®æ¥ç¶ããå¼·å¶çã«åæãããã«ã¯ï¼ã©ããããããããç°å¢ã¯ï¼Linuxä¸ã§ï¼Ruby on RailsããPostgreSQLã«ã¤ãªãã§ããå ´åãæ³å®ã èãããæ¹å¼ã¯ï¼éãã ActiveRecordå´ããï¼DBæ¥ç¶ãåæãã PostgreSQLå´ããï¼DBæ¥ç¶ãåæãã OSå´â¦
ãããã®ã¾ã¨ãTOP㸠Linuxä¸ã§ï¼å·¨å¤§ãªãµã¤ãºã®ããã¼ãã¡ã¤ã«ã欲ããå ´åããããä¾ãã°ï¼å§ç¸®ã½ããã®å§ç¸®çãæ¯è¼ãããå ´åãªã©ã ãã®å ´åï¼ããã¼ãã¡ã¤ã«ã®æ§è³ªã¨ãã¦ï¼ä¸è¨ã®ç¹ãæ±ããããã å 容ãï¼æ¥µç«¯ã«ãå質ãéãã¦ã¯ãããªããï¼å§ç¸®çµæâ¦
è¤æ°ã®INSERTæããåçã«ãçºè¡ããã«ã¯ï¼ã©ãããããããï¼ ä¾ãã°ï¼é½åã®ãããµã³ãã«ãã¼ã¿ãDBã«å¤§éæå ¥ãããã¨ãããã®å ´åï¼INSERTæã大éã«çºè¡ãããã¨ã«ãªããã©ããã£ã¦ï¼ ï¼æ¡ï¼ï¼SQLãExcelã§å¤§éçæ ï¼æ¡ï¼ï¼PREPAREæãExcelã§å¤§éçæâ¦
以ä¸ã®ï¼ã¹ãããã§ï¼é©åãªã¤ã³ããã¯ã¹ãä½æãï¼SQLãé«éåã§ããã ï¼ï¼ï¼ ããã©ã¼ãã³ã¹ãæ¹åãã¹ãSQLï¼ãããã¯ã«ã©ã ï¼ãç¹å® ï¼ï¼âï¼ï¼ ãã°ãé²è¦§ãï¼å®è¡ç§æ°ã®å¤§ãããã®ãæ½åºããã ï¼ï¼âï¼ï¼ çµ±è¨ãã¼ãã«ãé²è¦§ãï¼ããå©ç¨ããããã¼ãâ¦
ãã¼ã¿ãã¼ã¹ã«ã¯ï¼ããã©ã³ã¶ã¯ã·ã§ã³åé¢ã¬ãã«ãã¨ãããã®ãããã 以ä¸ã§ã¯ï¼ããã ãªãå¿ è¦ãªã®ãï¼ ããã©ã«ãã®ã¬ãã«ã§ã¯ï¼ã©ããã¦é§ç®ãªã®ãï¼ PostgreSQLã§ã¯ï¼ã©ããã£ã¦ã¬ãã«ãå¤æ´ã»ç¢ºèªããã®ãï¼ ãªã©ãåãä¸ããã ãã©ã³ã¶ã¯ã·ã§ã³åâ¦
SQLã®ãç¸é¢ãµãã¯ã¨ãªãããããã°ã»ã»ã» 巨大ãªSQLãï¼è¿·ããã«èªããããã«ãªãã ãé¢æ°ãã®ãããªï¼ä¾¿å©ãªãµãã¯ã¨ãªãæ¸ããããã«ãªãã 以ä¸ã§ã¯ï¼ ãç¸é¢ãµãã¯ã¨ãªãã¨ã¯ä½ãï¼ æ®éã®ãµãã¯ã¨ãªï¼éç¸é¢ãµãã¯ã¨ãªï¼ãJOINæä½ã¨ã¯ä½ãéãã®ãï¼â¦
ãããã®ã¾ã¨ãTOP㸠ã³ãã³ãããã³ããã®ãããããï¼ODBCè¨å®ã æ°è¦ä½æ æ´æ° ä¸è¦§è¡¨ç¤º ããæ¹æ³ãæ¥ç¶å ã®DBMSã®ä¾ã¨ãã¦ã¯ï¼PostgreSQLã®å ´åãåãä¸ããã GUIã ã¨ï¼DSNã追å ããããã«ã¯ ã³ã³ããã¼ã«ããã«â管çãã¼ã«âãã¼ã¿ã½ã¼ã¹ï¼ODBCï¼ ã®ãâ¦
PostgreSQLã§ï¼ãã¼ãã«ã使ããã«ï¼è¤æ°è¡ã®ãã¼ã¿ãåå¾ããæ¹æ³ã SQLã®ä¸ã§ï¼å¤§éã®å®æ°ãã¼ã¿ã使ãå¿ è¦ããããï¼ä¾ãã°ï¼ï¼ã¶æéã®æ¥ä»å ¨é¨ã¨ãï¼1000ã¾ã§ã®ç´ æ°å ¨é¨ã¨ãï¼ ã ãï¼ãããã®ãã¼ã¿ãï¼åãã£ã¦ã©ããã®ãã¼ãã«ã«æ ¼ç´ãã¦ãããã¨ã¯ã§â¦
PostgreSQLã§ï¼ã·ã¹ãã ãã¼ãã«ãå©ç¨ããããã®å ¥éã ã·ã¹ãã ãã¼ãã«ã®ä½¿ãæ¹ãè¦ããã°ï¼èªåãä½ã£ããã¼ãã«ã®çµ±è¨æ å ±ãï¼ã¡ã¿ãã¼ã¿ãåå¾ããäºãã§ãããDBãã®ãã®ã®ç解ãæ·±ã¾ãã ï¼ï¼ï¼æ å ±ã¹ãã¼ãï¼äººéã«ç解ããããã調ã¹ç©ãããã¨ãâ¦
ãããã®ã¾ã¨ãTOP㸠JScript/WSHã§ï¼CSVã.xlsãã¡ã¤ã«ã«å¤æããã¹ã¯ãªããã å®ã¯ï¼Excelã«ã¯è´å½çãªãã°ï¼è´å½çãªä»æ§ï¼ãããï¼CSVã®æ±ããã²ã©ãã ã©ãã»ã©å·¥å¤«ãã¦ãï¼CSVãExcelä¸ã§éãã¨ï¼ åããããã ã»ã«ã®è¡¨ç¤ºå½¢å¼ã楽ã«å¶å¾¡ã§ããï¼å¤ãâ¦
ãããã®ã¾ã¨ãTOP㸠PostgreSQLããããã§èªåå®è¡ããæ¹æ³ããã¹ã¯ã¼ãå ¥åãªãã PostgreSQLãã³ãã³ãã©ã¤ã³ããå©ç¨ããããã«ã¯ï¼é常ã¯psqlãçµç±ãããpsqlã¯å®è¡æã«å¿ ããã¹ã¯ã¼ããèãããã®ã§ï¼ãããã«ããèªåé転ã¯ä¸å¯è½ã æè¡çéè«-Postâ¦