2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2003-07-16 09:20:01 +00:00
|
|
|
<!-- $Revision: 1.5 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 -->
|
|
|
|
<refentry id='function.pg-copy-from'>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>pg_copy_from</refname>
|
|
|
|
<refpurpose>
|
2002-04-25 00:50:04 +00:00
|
|
|
Insert records into a table from an array
|
2002-04-15 00:12:54 +00:00
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
2002-09-30 04:24:16 +00:00
|
|
|
<type>bool</type><methodname>pg_copy_from</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
|
2002-04-15 00:12:54 +00:00
|
|
|
<methodparam><type>string</type><parameter>table_name</parameter></methodparam>
|
|
|
|
<methodparam><type>array</type><parameter>rows</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>null_as</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2002-04-25 00:50:04 +00:00
|
|
|
<function>pg_copy_from</function> insert records into a table from
|
2002-09-30 04:24:16 +00:00
|
|
|
<parameter>rows</parameter>. It issues <literal>COPY FROM</literal> SQL command
|
2002-04-25 00:50:04 +00:00
|
|
|
internally to insert records.
|
2002-04-15 00:12:54 +00:00
|
|
|
&return.success;
|
|
|
|
</para>
|
|
|
|
<para>
|
2003-07-16 09:20:01 +00:00
|
|
|
See also <function>pg_copy_to</function>.
|
2002-04-15 00:12:54 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|