pg_copy_to

 array pg_copy_to ( resource $connection , string $table_name [, string $delimiter [, string $null_as ]] ) 

説明

pg_copy_to() copies a table to an array. It issues COPY TO SQL command internally to retrieve records.

戻り値

An array with one element for each line of COPY data. It returns FALSE on failure.