note 126336 added to function.pg-insert
| From: | Anonymous at main dot php dot net | Date: | Thu, 12 Aug 2021 16:56:46 +0000 |
| Subject: | note 126336 added to function.pg-insert | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216778@lists.php.net to get a copy of this message | ||
$Result = pg_query_params($db,'INSERT INTO table1 (a, b, c) VALUES ($1,$2,$3) RETURNING
*', array('1','2','3');
$Row = pg_fetch_assoc($Result);
pg_insert($db, 'table2', $Row);
pg_insert fail silently if one or more fields on table2 have different names than on table1
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 82.57.24.215)
----
Manual Page -- https://php.net/manual/en/function.pg-insert.php
Edit -- https://main.php.net/note/edit/126336
Del: integrated -- https://main.php.net/note/delete/126336/integrated
Del: useless -- https://main.php.net/note/delete/126336/useless
Del: bad code -- https://main.php.net/note/delete/126336/bad+code
Del: spam -- https://main.php.net/note/delete/126336/spam
Del: non-english -- https://main.php.net/note/delete/126336/non-english
Del: in docs -- https://main.php.net/note/delete/126336/in+docs
Del: other reasons-- https://main.php.net/note/delete/126336
Reject -- https://main.php.net/note/reject/126336
Search -- https://main.php.net/manage/user-notes.php