(PHP 4 >= 4.0.3, PHP 5, PHP 7)
pg_end_copy — 锟斤拷 PostgreSQL 锟斤拷锟酵拷锟�
$connection
] ) : boolpg_end_copy() 锟节达拷锟斤拷锟斤拷 pg_put_line() 锟斤拷执锟叫的匡拷锟斤拷锟斤拷锟斤拷之锟斤拷 PostgreSQL 前锟剿o拷通锟斤拷为 web server 锟斤拷锟教o拷锟斤拷 PostgreSQL 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷同锟斤拷锟斤拷pg_end_copy() 锟斤拷锟诫被锟斤拷锟矫o拷锟斤拷锟斤拷 PostgreSQL 锟斤拷锟斤拷锟斤拷锟斤拷锟杰伙拷锟角帮拷锟绞ネ拷锟斤拷锟斤拷锟斤拷锟�
connection
PostgreSQL database connection resource. When
connection
is not present, the default connection
is used. The default connection is the last connection made by
pg_connect() or pg_pconnect().
锟缴癸拷时锟斤拷锟斤拷 TRUE
锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE
锟斤拷
Example #1 pg_end_copy() 锟斤拷锟斤拷
<?php
$conn = pg_pconnect("dbname=foo");
pg_query($conn, "create table bar (a int4, b char(16), d float8)");
pg_query($conn, "copy bar from stdin");
pg_put_line($conn, "3\thello world\t4.5\n");
pg_put_line($conn, "4\tgoodbye world\t7.11\n");
pg_put_line($conn, "\.\n");
pg_end_copy($conn);
?>