note 94672 modified in function.pg-copy-to by danbrown
| From: | danbrown@php.net | Date: | Tue, 17 Nov 2009 19:30:51 +0000 |
| Subject: | note 94672 modified in function.pg-copy-to by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163005@lists.php.net to get a copy of this message | ||
You cannot specify the schema name in this command. You can change the search path for just one
query by using the following code:
<?php
pg_query($conn, "SET search_path TO myschema;");
$copy_to = pg_copy_to($conn, 'tablename');
pg_query("RESET search_path;");
?>
--was--
You cannot specify the schema name in this command. You can change the search path for just one
query by using the following code:
pg_query($conn, "SET search_path TO myschema;");
$copy_to = pg_copy_to($conn, 'tablename');
pg_query("RESET search_path;");
http://php.net/manual/en/function.pg-copy-to.php