PostgreSQLã«å¤§éã®ãã¼ã¿ãç»é²ããéã¯INSERTã使ã£ã¦ä¸ä»¶ã¥ã¤å¦çãããããCOPYã使ã£ã¦ä¸æ°ã«ç»é²ããæ¹ãå®è¡é度ãï¼ããªãï¼éãã§ãã ããã§PHPã§ãCOPYæã使ã£ã¦ã¿ã¾ãããã pg_copy_fromã使ã ç»é²ãããã¼ã¿ãé åã«å ¥ã£ã¦ãããªãpg_copy_fromã ãã§ä¸æ°ã«å¦çã§ãã¾ãã é åã®1è¦ç´ ã1ã¬ã³ã¼ãã«å¯¾å¿ãã¦ãã¾ãã1è¦ç´ å ã§ã¯åã«ã©ã ãããªãã¿ï¼ããã©ã«ãã¯â\tâï¼ã§é£çµãã¾ãã <?php $values = array(); $values[] = "1\tname1"; $values[] = "2\tname2"; $values[] = "3\tname3"; $db = pg_connect("dbname=hogedb"); pg_copy_from($db, 'table',
{{#tags}}- {{label}}
{{/tags}}