note 94671 added to function.pg-copy-from
| From: | etiger13 at gmail dot com | Date: | Tue, 17 Nov 2009 19:10:47 +0000 |
| Subject: | note 94671 added to function.pg-copy-from | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163000@lists.php.net to get a copy of this message | ||
This will not look in other schema's, only the schema's in your search path. You can
temporarily change this behavior with the following code:
pg_query($conn, "SET search_path TO myschema;");
$copy_from = pg_copy_from($conn, 'tablename', $filetoarray, ",");
if ( !$copy_from )
{
echo pg_last_error($conn);
exit;
}
pg_query("RESET search_path;");
----
Server IP: 209.41.74.194
Probable Submitter: 66.117.143.148
----
Manual Page -- http://www.php.net/manual/en/function.pg-copy-from.php
Edit -- https://master.php.net/note/edit/94671
Del: integrated -- https://master.php.net/note/delete/94671/integrated
Del: useless -- https://master.php.net/note/delete/94671/useless
Del: bad code -- https://master.php.net/note/delete/94671/bad+code
Del: spam -- https://master.php.net/note/delete/94671/spam
Del: non-english -- https://master.php.net/note/delete/94671/non-english
Del: in docs -- https://master.php.net/note/delete/94671/in+docs
Del: other reasons-- https://master.php.net/note/delete/94671
Reject -- https://master.php.net/note/reject/94671
Search -- https://master.php.net/manage/user-notes.php