亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? copy.sgml

?? postgresql8.3.4源碼,開源數據庫
?? SGML
?? 第 1 頁 / 共 2 頁
字號:
<!--$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.81 2008/01/16 22:07:04 adunstan Exp $PostgreSQL documentation--><refentry id="SQL-COPY"> <refmeta>  <refentrytitle id="sql-copy-title">COPY</refentrytitle>  <refmiscinfo>SQL - Language Statements</refmiscinfo> </refmeta> <refnamediv>  <refname>COPY</refname>  <refpurpose>copy data between a file and a table</refpurpose> </refnamediv> <indexterm zone="sql-copy">  <primary>COPY</primary> </indexterm> <refsynopsisdiv><synopsis>COPY <replaceable class="parameter">tablename</replaceable> [ ( <replaceable class="parameter">column</replaceable> [, ...] ) ]    FROM { '<replaceable class="parameter">filename</replaceable>' | STDIN }    [ [ WITH ]           [ BINARY ]          [ OIDS ]          [ DELIMITER [ AS ] '<replaceable class="parameter">delimiter</replaceable>' ]          [ NULL [ AS ] '<replaceable class="parameter">null string</replaceable>' ]          [ CSV [ HEADER ]                [ QUOTE [ AS ] '<replaceable class="parameter">quote</replaceable>' ]                 [ ESCAPE [ AS ] '<replaceable class="parameter">escape</replaceable>' ]                [ FORCE NOT NULL <replaceable class="parameter">column</replaceable> [, ...] ]COPY { <replaceable class="parameter">tablename</replaceable> [ ( <replaceable class="parameter">column</replaceable> [, ...] ) ] | ( <replaceable class="parameter">query</replaceable> ) }    TO { '<replaceable class="parameter">filename</replaceable>' | STDOUT }    [ [ WITH ]           [ BINARY ]          [ HEADER ]          [ OIDS ]          [ DELIMITER [ AS ] '<replaceable class="parameter">delimiter</replaceable>' ]          [ NULL [ AS ] '<replaceable class="parameter">null string</replaceable>' ]          [ CSV [ HEADER ]                [ QUOTE [ AS ] '<replaceable class="parameter">quote</replaceable>' ]                 [ ESCAPE [ AS ] '<replaceable class="parameter">escape</replaceable>' ]                [ FORCE QUOTE <replaceable class="parameter">column</replaceable> [, ...] ]</synopsis> </refsynopsisdiv>  <refsect1>  <title>Description</title>  <para>   <command>COPY</command> moves data between   <productname>PostgreSQL</productname> tables and standard file-system   files. <command>COPY TO</command> copies the contents of a table   <emphasis>to</> a file, while <command>COPY FROM</command> copies   data <emphasis>from</> a file to a table (appending the data to   whatever is in the table already).  <command>COPY TO</command>   can also copy the results of a <command>SELECT</> query.  </para>  <para>   If a list of columns is specified, <command>COPY</command> will   only copy the data in the specified columns to or from the file.   If there are any columns in the table that are not in the column list,   <command>COPY FROM</command> will insert the default values for   those columns.  </para>  <para>   <command>COPY</command> with a file name instructs the   <productname>PostgreSQL</productname> server to directly read from   or write to a file. The file must be accessible to the server and   the name must be specified from the viewpoint of the server. When   <literal>STDIN</literal> or <literal>STDOUT</literal> is   specified, data is transmitted via the connection between the   client and the server.  </para> </refsect1>   <refsect1>  <title>Parameters</title>  <variablelist>   <varlistentry>    <term><replaceable class="parameter">tablename</replaceable></term>    <listitem>     <para>      The name (optionally schema-qualified) of an existing table.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><replaceable class="parameter">column</replaceable></term>     <listitem>     <para>      An optional list of columns to be copied.  If no column list is      specified, all columns of the table will be copied.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><replaceable class="parameter">query</replaceable></term>    <listitem>     <para>      A <xref linkend="sql-select" endterm="sql-select-title"> or      <xref linkend="sql-values" endterm="sql-values-title"> command      whose results are to be copied.      Note that parentheses are required around the query.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><replaceable class="parameter">filename</replaceable></term>    <listitem>     <para>      The absolute path name of the input or output file.  Windows users      might need to use an <literal>E''</> string and double backslashes      used as path separators.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><literal>STDIN</literal></term>    <listitem>     <para>      Specifies that input comes from the client application.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><literal>STDOUT</literal></term>    <listitem>     <para>      Specifies that output goes to the client application.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><literal>BINARY</literal></term>    <listitem>     <para>      Causes all data to be stored or read in binary format rather      than as text. You cannot specify the <option>DELIMITER</option>,      <option>NULL</option>, or <option>CSV</> options in binary mode.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><literal>OIDS</literal></term>    <listitem>     <para>      Specifies copying the OID for each row.  (An error is raised if      <literal>OIDS</literal> is specified for a table that does not      have OIDs, or in the case of copying a <replaceable      class="parameter">query</replaceable>.)     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><replaceable class="parameter">delimiter</replaceable></term>    <listitem>     <para>      The single ASCII character that separates columns within each row      (line) of the file.  The default is a tab character in text mode,      a comma in <literal>CSV</> mode.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><replaceable class="parameter">null string</replaceable></term>    <listitem>     <para>      The string that represents a null value. The default is      <literal>\N</literal> (backslash-N) in text mode, and a empty      value with no quotes in <literal>CSV</> mode. You might prefer an      empty string even in text mode for cases where you don't want to      distinguish nulls from empty strings.     </para>     <note>      <para>       When using <command>COPY FROM</command>, any data item that matches       this string will be stored as a null value, so you should make       sure that you use the same string as you used with       <command>COPY TO</command>.      </para>     </note>    </listitem>   </varlistentry>   <varlistentry>    <term><literal>CSV</literal></term>    <listitem>     <para>      Selects Comma Separated Value (<literal>CSV</>) mode.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><literal>HEADER</literal></term>    <listitem>     <para>      Specifies the file contains a header line with the names of each      column in the file.  On output, the first line contains the column       names from the table, and on input, the first line is ignored.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><replaceable class="parameter">quote</replaceable></term>    <listitem>     <para>      Specifies the ASCII quotation character in <literal>CSV</> mode.      The default is double-quote.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><replaceable class="parameter">escape</replaceable></term>    <listitem>     <para>      Specifies the ASCII character that should appear before a      <literal>QUOTE</> data character value in <literal>CSV</> mode.      The default is the <literal>QUOTE</> value (usually double-quote).     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><literal>FORCE QUOTE</></term>    <listitem>     <para>      In <literal>CSV</> <command>COPY TO</> mode, forces quoting to be      used for all non-<literal>NULL</> values in each specified column.      <literal>NULL</> output is never quoted.     </para>    </listitem>   </varlistentry>   <varlistentry>    <term><literal>FORCE NOT NULL</></term>    <listitem>     <para>      In <literal>CSV</> <command>COPY FROM</> mode, process each      specified column as though it were quoted and hence not a      <literal>NULL</> value. For the default null string in      <literal>CSV</> mode (<literal>''</>), this causes missing      values to be input as zero-length strings.     </para>    </listitem>   </varlistentry>  </variablelist> </refsect1> <refsect1>  <title>Outputs</title>  <para>   On successful completion, a <command>COPY</> command returns a command   tag of the form<screen>COPY <replaceable class="parameter">count</replaceable></screen>   The <replaceable class="parameter">count</replaceable> is the number   of rows copied.  </para> </refsect1> <refsect1>  <title>Notes</title>   <para>    <command>COPY</command> can only be used with plain tables, not    with views.  However, you can write <literal>COPY (SELECT * FROM    <replaceable class="parameter">viewname</replaceable>) TO ...</literal>.   </para>   <para>    The <literal>BINARY</literal> key word causes all data to be    stored/read as binary format rather than as text.  It is    somewhat faster than the normal text mode, but a binary-format    file is less portable across machine architectures and    <productname>PostgreSQL</productname> versions.   </para>   <para>    You must have select privilege on the table    whose values are read by <command>COPY TO</command>, and    insert privilege on the table into which values    are inserted by <command>COPY FROM</command>.   </para>   <para>    Files named in a <command>COPY</command> command are read or written    directly by the server, not by the client application. Therefore,    they must reside on or be accessible to the database server machine,    not the client. They must be accessible to and readable or writable    by the <productname>PostgreSQL</productname> user (the user ID the    server runs as), not the client. <command>COPY</command> naming a    file is only allowed to database superusers, since it allows reading    or writing any file that the server has privileges to access.   </para>   <para>    Do not confuse <command>COPY</command> with the    <application>psql</application> instruction    <command>\copy</command>. <command>\copy</command> invokes    <command>COPY FROM STDIN</command> or <command>COPY TO    STDOUT</command>, and then fetches/stores the data in a file    accessible to the <application>psql</application> client. Thus,    file accessibility and access rights depend on the client rather    than the server when <command>\copy</command> is used.   </para>   <para>    It is recommended that the file name used in <command>COPY</command>    always be specified as an absolute path. This is enforced by the    server in the case of <command>COPY TO</command>, but for    <command>COPY FROM</command> you do have the option of reading from    a file specified by a relative path. The path will be interpreted    relative to the working directory of the server process (normally    the cluster's data directory), not the client's working directory.   </para>   <para>    <command>COPY FROM</command> will invoke any triggers and check    constraints on the destination table. However, it will not invoke rules.   </para>   <para>    <command>COPY</command> input and output is affected by    <varname>DateStyle</varname>. To ensure portability to other    <productname>PostgreSQL</productname> installations that might use    non-default <varname>DateStyle</varname> settings,    <varname>DateStyle</varname> should be set to <literal>ISO</> before    using <command>COPY TO</>.   </para>   <para>    Input data is interpreted according to the current client encoding,    and output data is encoded in the the current client encoding, even    if the data does not pass through the client but is read from or    written to a file.   </para>   <para>    <command>COPY</command> stops operation at the first error. This    should not lead to problems in the event of a <command>COPY    TO</command>, but the target table will already have received    earlier rows in a <command>COPY FROM</command>. These rows will not    be visible or accessible, but they still occupy disk space. This might    amount to a considerable amount of wasted disk space if the failure    happened well into a large copy operation. You might wish to invoke    <command>VACUUM</command> to recover the wasted space.   </para> </refsect1>  <refsect1>  <title>File Formats</title>  <refsect2>   <title>Text Format</title>   <para>    When <command>COPY</command> is used without the <literal>BINARY</literal>    or <literal>CSV</> options,    the data read or written is a text file with one line per table row.    Columns in a row are separated by the delimiter character.    The column values themselves are strings generated by the    output function, or acceptable to the input function, of each    attribute's data type.  The specified null string is used in    place of columns that are null.    <command>COPY FROM</command> will raise an error if any line of the    input file contains more or fewer columns than are expected.    If <literal>OIDS</literal> is specified, the OID is read or written as the first column,    preceding the user data columns.   </para>   <para>    End of data can be represented by a single line containing just    backslash-period (<literal>\.</>).  An end-of-data marker is    not necessary when reading from a file, since the end of file    serves perfectly well; it is needed only when copying data to or from    client applications using pre-3.0 client protocol.   </para>   <para>    Backslash characters (<literal>\</>) can be used in the    <command>COPY</command> data to quote data characters that might    otherwise be taken as row or column delimiters. In particular, the    following characters <emphasis>must</> be preceded by a backslash if    they appear as part of a column value: backslash itself,    newline, carriage return, and the current delimiter character.   </para>   <para>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩理论片中文av| 国产69精品久久久久毛片| 日日欢夜夜爽一区| 国产成a人无v码亚洲福利| 色先锋aa成人| 久久久久国产一区二区三区四区 | 午夜精品成人在线| 成人手机在线视频| 精品91自产拍在线观看一区| 五月天视频一区| 色综合久久综合中文综合网| 国产亚洲成aⅴ人片在线观看| 丝袜亚洲精品中文字幕一区| 一本到不卡精品视频在线观看| 国产精品免费视频网站| 久久aⅴ国产欧美74aaa| 91精品视频网| 亚洲国产精品综合小说图片区| 成人黄色在线网站| 中日韩av电影| 成人亚洲精品久久久久软件| 久久蜜桃一区二区| 国产精品亚洲一区二区三区在线 | 免费观看一级欧美片| 欧美性感一类影片在线播放| 亚洲人成网站精品片在线观看| 成人教育av在线| 日本一区二区三区国色天香| 国产一区二区三区国产| 欧美一级淫片007| 麻豆91精品视频| 欧美一区二区三区白人| 五月天激情综合| 91精品国产综合久久久久久漫画| 五月天婷婷综合| 在线成人免费观看| 美国十次综合导航| 日韩欧美国产一区二区在线播放 | 精品久久久久久亚洲综合网 | 久久综合av免费| 国产福利精品导航| 国产精品福利av| 色狠狠av一区二区三区| 亚洲成人三级小说| 欧美一级一级性生活免费录像| 麻豆精品久久久| 亚洲国产精品99久久久久久久久| 丁香婷婷综合激情五月色| 国产精品乱子久久久久| 91福利小视频| 日本不卡不码高清免费观看| 亚洲精品一区二区三区影院| 国产成人一区在线| 亚洲日本欧美天堂| 欧美一级免费观看| 国产 日韩 欧美大片| 一区二区视频免费在线观看| 欧美一级日韩免费不卡| 成人在线视频一区二区| 一区二区三区丝袜| 精品国产一区二区国模嫣然| fc2成人免费人成在线观看播放| 亚洲免费视频中文字幕| 欧美一区永久视频免费观看| 成人午夜短视频| 视频一区二区三区中文字幕| 国产亚洲一区二区在线观看| 色成年激情久久综合| 日本最新不卡在线| 国产毛片精品国产一区二区三区| 国产乱码精品一区二区三区忘忧草| 国产精品免费观看视频| 欧美自拍偷拍午夜视频| 日韩成人av影视| 成人精品国产免费网站| 国产精品对白交换视频| 97精品视频在线观看自产线路二 | 亚洲r级在线视频| 亚洲综合久久久久| 亚洲国产精品久久不卡毛片| 亚洲欧洲韩国日本视频| 亚洲免费伊人电影| 亚洲无人区一区| 日本网站在线观看一区二区三区 | 蜜乳av一区二区三区| 奇米精品一区二区三区四区| 蜜桃精品视频在线| 国产很黄免费观看久久| 国产黑丝在线一区二区三区| 成人h版在线观看| 色琪琪一区二区三区亚洲区| 欧美网站一区二区| 欧美一区二区大片| 国产亚洲婷婷免费| 1024成人网| 亚洲成人福利片| 狠狠色狠狠色综合系列| 国产aⅴ综合色| 日本韩国精品在线| 在线电影国产精品| 久久午夜电影网| 日韩美女视频一区二区 | 欧美精品一区二区不卡| 欧美国产日韩一二三区| 亚洲欧美日韩久久精品| 日韩成人午夜电影| 国产福利电影一区二区三区| 99精品欧美一区二区三区小说| 欧美综合色免费| 欧美va亚洲va| 亚洲人成网站精品片在线观看| 亚洲成人一区二区在线观看| 国产一区美女在线| 在线观看不卡一区| 精品成人佐山爱一区二区| 亚洲色欲色欲www在线观看| 日本在线不卡一区| av日韩在线网站| 日韩一级成人av| 一区视频在线播放| 麻豆国产91在线播放| 91网址在线看| 欧美精品一区二区三区视频| 一区二区三区电影在线播| 久久成人免费网站| 欧美日韩免费在线视频| 国产欧美1区2区3区| 免费在线看成人av| 日本久久电影网| 久久精品欧美一区二区三区麻豆| 亚洲成人av免费| 成人一道本在线| 精品国产乱码久久久久久蜜臀| 国产一区二区三区在线观看精品| 91日韩精品一区| 亚洲国产精品激情在线观看| 欧美aⅴ一区二区三区视频| 色婷婷av一区二区三区gif| 久久精品男人天堂av| 青青国产91久久久久久| 色88888久久久久久影院按摩| 欧美国产精品专区| 国产一区二区美女| 日韩视频在线一区二区| 亚洲福利电影网| 91美女视频网站| 中文字幕亚洲视频| 国产成+人+日韩+欧美+亚洲| 亚洲精品一区二区精华| 日本网站在线观看一区二区三区| 欧美三级中文字幕| 一区二区三区精品视频在线| av一区二区三区在线| 中文字幕第一页久久| 国产乱一区二区| 26uuu亚洲综合色| 日本成人中文字幕| 91精品国产色综合久久| 视频在线观看91| 777a∨成人精品桃花网| 首页欧美精品中文字幕| 欧美精品久久99久久在免费线 | 亚洲资源中文字幕| 色一区在线观看| 亚洲男人电影天堂| 91丨porny丨国产入口| 亚洲四区在线观看| 91在线播放网址| 亚洲精品中文在线| 在线区一区二视频| 亚洲综合久久久| 欧美日韩精品专区| 三级欧美韩日大片在线看| 91麻豆精品国产91久久久资源速度 | 日本中文字幕一区二区视频| 日韩色视频在线观看| 久久精品国产精品青草| 久久综合色之久久综合| 国产精品一区二区不卡| 国产精品妹子av| 欧洲精品一区二区| 日韩电影在线观看一区| 久久综合久久鬼色| 不卡一卡二卡三乱码免费网站| 亚洲日本中文字幕区| 欧美色精品在线视频| 蜜臀久久99精品久久久久久9 | 精品伊人久久久久7777人| 亚洲精品一区二区三区在线观看| 国产成人av一区二区三区在线| 最新中文字幕一区二区三区 | 一区二区在线看| 欧美男女性生活在线直播观看| 精品一区二区三区视频 | 在线免费观看成人短视频| 成人av资源下载| 天天综合色天天综合色h| 26uuu国产在线精品一区二区| 91影视在线播放| 日本中文字幕不卡|