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

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

?? select.sgml

?? PostgreSQL7.4.6 for Linux
?? SGML
?? 第 1 頁 / 共 3 頁
字號:
<!--$Header: /cvsroot/pgsql/doc/src/sgml/ref/select.sgml,v 1.71.2.2 2004/09/13 01:59:35 neilc Exp $PostgreSQL documentation--><refentry id="SQL-SELECT"> <refmeta>  <refentrytitle id="sql-select-title">SELECT</refentrytitle>  <refmiscinfo>SQL - Language Statements</refmiscinfo> </refmeta> <refnamediv>  <refname>SELECT</refname>  <refpurpose>retrieve rows from a table or view</refpurpose> </refnamediv> <indexterm zone="sql-select">  <primary>SELECT</primary> </indexterm> <refsynopsisdiv><synopsis>SELECT [ ALL | DISTINCT [ ON ( <replaceable class="parameter">expression</replaceable> [, ...] ) ] ]    * | <replaceable class="parameter">expression</replaceable> [ AS <replaceable class="parameter">output_name</replaceable> ] [, ...]    [ FROM <replaceable class="parameter">from_item</replaceable> [, ...] ]    [ WHERE <replaceable class="parameter">condition</replaceable> ]    [ GROUP BY <replaceable class="parameter">expression</replaceable> [, ...] ]    [ HAVING <replaceable class="parameter">condition</replaceable> [, ...] ]    [ { UNION | INTERSECT | EXCEPT } [ ALL ] <replaceable class="parameter">select</replaceable> ]    [ ORDER BY <replaceable class="parameter">expression</replaceable> [ ASC | DESC | USING <replaceable class="parameter">operator</replaceable> ] [, ...] ]    [ LIMIT { <replaceable class="parameter">count</replaceable> | ALL } ]    [ OFFSET <replaceable class="parameter">start</replaceable> ]    [ FOR UPDATE [ OF <replaceable class="parameter">table_name</replaceable> [, ...] ] ]where <replaceable class="parameter">from_item</replaceable> can be one of:    [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [ [ AS ] <replaceable class="parameter">alias</replaceable> [ ( <replaceable class="parameter">column_alias</replaceable> [, ...] ) ] ]    ( <replaceable class="parameter">select</replaceable> ) [ AS ] <replaceable class="parameter">alias</replaceable> [ ( <replaceable class="parameter">column_alias</replaceable> [, ...] ) ]    <replaceable class="parameter">function_name</replaceable> ( [ <replaceable class="parameter">argument</replaceable> [, ...] ] ) [ AS ] <replaceable class="parameter">alias</replaceable> [ ( <replaceable class="parameter">column_alias</replaceable> [, ...] | <replaceable class="parameter">column_definition</replaceable> [, ...] ) ]    <replaceable class="parameter">function_name</replaceable> ( [ <replaceable class="parameter">argument</replaceable> [, ...] ] ) AS ( <replaceable class="parameter">column_definition</replaceable> [, ...] )    <replaceable class="parameter">from_item</replaceable> [ NATURAL ] <replaceable class="parameter">join_type</replaceable> <replaceable class="parameter">from_item</replaceable> [ ON <replaceable class="parameter">join_condition</replaceable> | USING ( <replaceable class="parameter">join_column</replaceable> [, ...] ) ]</synopsis> </refsynopsisdiv> <refsect1>  <title>Description</title>  <para>   <command>SELECT</command> retrieves rows from one or more tables.   The general processing of <command>SELECT</command> is as follows:   <orderedlist>    <listitem>     <para>      All elements in the <literal>FROM</literal> list are computed.      (Each element in the <literal>FROM</literal> list is a real or      virtual table.)  If more than one element is specified in the      <literal>FROM</literal> list, they are cross-joined together.      (See <xref linkend="sql-from" endterm="sql-from-title"> below.)     </para>    </listitem>    <listitem>     <para>      If the <literal>WHERE</literal> clause is specified, all rows      that do not satisfy the condition are eliminated from the      output.  (See <xref linkend="sql-where"      endterm="sql-where-title"> below.)     </para>    </listitem>    <listitem>     <para>      If the <literal>GROUP BY</literal> clause is specified, the      output is divided into groups of rows that match on one or more      values.  If the <literal>HAVING</literal> clause is present, it      eliminates groups that do not satisfy the given condition.  (See      <xref linkend="sql-groupby" endterm="sql-groupby-title"> and      <xref linkend="sql-having" endterm="sql-having-title"> below.)     </para>    </listitem>    <listitem>     <para>      Using the operators <literal>UNION</literal>,      <literal>INTERSECT</literal>, and <literal>EXCEPT</literal>, the      output of more than one <command>SELECT</command> statement can      be combined to form a single result set.  The      <literal>UNION</literal> operator returns all rows that are in      one or both of the result sets.  The      <literal>INTERSECT</literal> operator returns all rows that are      strictly in both result sets.  The <literal>EXCEPT</literal>      operator returns the rows that are in the first result set but      not in the second.  In all three cases, duplicate rows are      eliminated unless <literal>ALL</literal> is specified. (See      <xref linkend="sql-union" endterm="sql-union-title">, <xref      linkend="sql-intersect" endterm="sql-intersect-title">, and      <xref linkend="sql-except" endterm="sql-except-title"> below.)     </para>    </listitem>    <listitem>     <para>      The actual output rows are computed using the      <command>SELECT</command> output expressions for each selected      row.  (See      <xref linkend="sql-select-list" endterm="sql-select-list-title">      below.)     </para>    </listitem>    <listitem>     <para>      If the <literal>ORDER BY</literal> clause is specified, the      returned rows are sorted in the specified order.  If      <literal>ORDER BY</literal> is not given, the rows are returned      in whatever order the system finds fastest to produce.  (See      <xref linkend="sql-orderby" endterm="sql-orderby-title"> below.)     </para>    </listitem>    <listitem>     <para>      <literal>DISTINCT</literal> eliminates duplicate rows from the      result.  <literal>DISTINCT ON</literal> eliminates rows that      match on all the specified expressions.  <literal>ALL</literal>      (the default) will return all candidate rows, including      duplicates.  (See <xref linkend="sql-distinct"      endterm="sql-distinct-title"> below.)     </para>    </listitem>    <listitem>     <para>      If the <literal>LIMIT</literal> or <literal>OFFSET</literal>      clause is specified, the <command>SELECT</command> statement      only returns a subset of the result rows. (See <xref      linkend="sql-limit" endterm="sql-limit-title"> below.)     </para>    </listitem>    <listitem>     <para>      The <literal>FOR UPDATE</literal> clause causes the      <command>SELECT</command> statement to lock the selected rows      against concurrent updates.  (See <xref linkend="sql-for-update"      endterm="sql-for-update-title"> below.)     </para>    </listitem>   </orderedlist>  </para>     <para>   You must have <literal>SELECT</literal> privilege on a table to   read its values.  The use of <literal>FOR UPDATE</literal> requires   <literal>UPDATE</literal> privilege as well.  </para> </refsect1> <refsect1>  <title>Parameters</title>  <refsect2 id="SQL-FROM">   <title id="sql-from-title"><literal>FROM</literal> Clause</title>   <para>    The <literal>FROM</literal> clause specifies one or more source    tables for the <command>SELECT</command>.  If multiple sources are    specified, the result is the Cartesian product (cross join) of all    the sources.  But usually qualification conditions    are added to restrict the returned rows to a small subset of the    Cartesian product.   </para>   <para>    <literal>FROM</literal>-clause elements can contain:    <variablelist>     <varlistentry>      <term><replaceable class="parameter">table_name</replaceable></term>      <listitem>       <para>        The name (optionally schema-qualified) of an existing table or        view.  If <literal>ONLY</> is specified, only that table is        scanned.  If <literal>ONLY</> is not specified, the table and        all its descendant tables (if any) are scanned.  <literal>*</>        can be appended to the table name to indicate that descendant        tables are to be scanned, but in the current version, this is        the default behavior.  (In releases before 7.1,        <literal>ONLY</> was the default behavior.)  The default        behavior can be modified by changing the        <varname>sql_inheritance</varname> configuration option.       </para>      </listitem>     </varlistentry>          <varlistentry>      <term><replaceable class="parameter">alias</replaceable></term>      <listitem>       <para>        A substitute name for the <literal>FROM</> item containing the        alias.  An alias is used for brevity or to eliminate ambiguity        for self-joins (where the same table is scanned multiple        times).  When an alias is provided, it completely hides the        actual name of the table or function; for example given        <literal>FROM foo AS f</>, the remainder of the        <command>SELECT</command> must refer to this <literal>FROM</>        item as <literal>f</> not <literal>foo</>.  If an alias is        written, a column alias list can also be written to provide        substitute names for one or more columns of the table.       </para>      </listitem>     </varlistentry>          <varlistentry>      <term><replaceable class="parameter">select</replaceable></term>      <listitem>       <para>        A sub-<command>SELECT</command> can appear in the        <literal>FROM</literal> clause.  This acts as though its        output were created as a temporary table for the duration of        this single <command>SELECT</command> command.  Note that the        sub-<command>SELECT</command> must be surrounded by        parentheses, and an alias <emphasis>must</emphasis> be        provided for it.       </para>      </listitem>     </varlistentry>     <varlistentry>      <term><replaceable class="parameter">function_name</replaceable></term>      <listitem>       <para>        Function calls can appear in the <literal>FROM</literal>        clause.  (This is especially useful for functions that return        result sets, but any function can be used.)  This acts as        though its output were created as a temporary table for the        duration of this single <command>SELECT</command> command. An        alias may also be used. If an alias is written, a column alias        list can also be written to provide substitute names for one        or more attributes of the function's composite return type. If        the function has been defined as returning the <type>record</>        data type, then an alias or the key word <literal>AS</> must        be present, followed by a column definition list in the form        <literal>( <replaceable        class="parameter">column_name</replaceable> <replaceable        class="parameter">data_type</replaceable> <optional>, ... </>        )</literal>.  The column definition list must match the actual        number and types of columns returned by the function.       </para>      </listitem>     </varlistentry>          <varlistentry>      <term><replaceable class="parameter">join_type</replaceable></term>      <listitem>       <para>        One of        <itemizedlist>         <listitem>          <para><literal>[ INNER ] JOIN</literal></para>         </listitem>         <listitem>          <para><literal>LEFT [ OUTER ] JOIN</literal></para>         </listitem>         <listitem>          <para><literal>RIGHT [ OUTER ] JOIN</literal></para>         </listitem>         <listitem>          <para><literal>FULL [ OUTER ] JOIN</literal></para>         </listitem>         <listitem>          <para><literal>CROSS JOIN</literal></para>         </listitem>        </itemizedlist>        For the <literal>INNER</> and <literal>OUTER</> join types, a        join condition must be specified, namely exactly one of        <literal>NATURAL</>, <literal>ON <replaceable        class="parameter">join_condition</replaceable></literal>, or        <literal>USING (<replaceable        class="parameter">join_column</replaceable> [, ...])</literal>.        See below for the meaning.  For <literal>CROSS JOIN</literal>,        none of these clauses may appear.       </para>       <para>        A <literal>JOIN</literal> clause combines two        <literal>FROM</> items.  Use parentheses if necessary to        determine the order of nesting.  In the absence of parentheses,	<literal>JOIN</literal>s nest left-to-right.  In any case	<literal>JOIN</literal> binds more tightly than the commas	separating <literal>FROM</> items.       </para>       <para>        <literal>CROSS JOIN</> and <literal>INNER JOIN</literal>        produce a simple Cartesian product, the same result as you get from        listing the two items at the top level of <literal>FROM</>,	but restricted by the join condition (if any).        <literal>CROSS JOIN</> is equivalent to <literal>INNER JOIN ON        (TRUE)</>, that is, no rows are removed by qualification.        These join types are just a notational convenience, since they        do nothing you couldn't do with plain <literal>FROM</> and        <literal>WHERE</>.       </para>       <para>        <literal>LEFT OUTER JOIN</> returns all rows in the qualified        Cartesian product (i.e., all combined rows that pass its join        condition), plus one copy of each row in the left-hand table        for which there was no right-hand row that passed the join        condition.  This left-hand row is extended to the full width        of the joined table by inserting null values for the        right-hand columns.  Note that only the <literal>JOIN</>        clause's own condition is considered while deciding which rows        have matches.  Outer conditions are applied afterwards.       </para>       <para>        Conversely, <literal>RIGHT OUTER JOIN</> returns all the        joined rows, plus one row for each unmatched right-hand row        (extended with nulls on the left).  This is just a notational        convenience, since you could convert it to a <literal>LEFT        OUTER JOIN</> by switching the left and right inputs.       </para>       <para>        <literal>FULL OUTER JOIN</> returns all the joined rows, plus        one row for each unmatched left-hand row (extended with nulls        on the right), plus one row for each unmatched right-hand row        (extended with nulls on the left).       </para>      </listitem>     </varlistentry>          <varlistentry>      <term><literal>ON <replaceable class="parameter">join_condition</replaceable></literal></term>      <listitem>       <para>        <replaceable class="parameter">join_condition</replaceable> is        an expression resulting in a value of type        <type>boolean</type> (similar to a <literal>WHERE</literal>        clause) that specifies which rows in a join are considered to        match.       </para>      </listitem>     </varlistentry>          <varlistentry>      <term><literal>USING (<replaceable class="parameter">join_column</replaceable> [, ...])</literal></term>      <listitem>       <para>        A clause of the form <literal>USING ( a, b, ... )</literal> is        shorthand for <literal>ON left_table.a = right_table.a AND        left_table.b = right_table.b ...</literal>.  Also,        <literal>USING</> implies that only one of each pair of        equivalent columns will be included in the join output, not        both.       </para>      </listitem>     </varlistentry>     <varlistentry>      <term><literal>NATURAL</literal></term>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人7777| 26uuu欧美| 99久久免费视频.com| 亚洲成人av电影| 亚洲第四色夜色| 精品一区二区三区免费毛片爱| 午夜精品久久久久久久| 一区二区三区成人| 麻豆成人综合网| 久久精品国产999大香线蕉| 五月天亚洲婷婷| 精品一区二区三区免费播放| 久久精品免费观看| 成人免费毛片app| 日韩视频在线你懂得| 2024国产精品| 一区二区三区在线观看国产| 亚洲r级在线视频| av亚洲产国偷v产偷v自拍| 欧美性xxxxxxxx| 日韩一区二区免费在线观看| 亚洲天堂精品在线观看| 青娱乐精品在线视频| 国产精品一区久久久久| 欧美va天堂va视频va在线| 久久久久久久久久看片| 日韩激情一二三区| www.久久精品| 国产欧美精品在线观看| 奇米精品一区二区三区在线观看| 在线观看亚洲a| 中文字幕一区二区三区不卡在线 | 亚洲欧美色综合| 国产精品99久久久久久有的能看 | 久久久亚洲精华液精华液精华液| 国产精品久久久久aaaa| 成人一区二区三区在线观看| 日韩一区国产二区欧美三区| 亚洲国产精品一区二区www在线| 91免费观看视频| 国产亚洲人成网站| 97超碰欧美中文字幕| 亚洲视频香蕉人妖| 欧美日本韩国一区| 日本午夜一区二区| 久久久久久久久久久久久久久99 | 婷婷成人激情在线网| 欧美高清视频www夜色资源网| 中文字幕一区二区三区四区| 色94色欧美sute亚洲线路一ni| 欧美96一区二区免费视频| 欧美一区二区三区视频在线| 老司机免费视频一区二区| 精品久久国产字幕高潮| 99国产精品视频免费观看| 日韩av一区二区三区四区| xnxx国产精品| 91蜜桃免费观看视频| 久久国产乱子精品免费女| 亚洲精品乱码久久久久久久久 | 中文字幕在线观看一区二区| 欧美亚一区二区| 成人av网站在线观看| 成人97人人超碰人人99| 亚洲一区二区三区在线| 欧美成人精精品一区二区频| av不卡在线观看| 91美女福利视频| 一本色道久久综合亚洲精品按摩| 韩国精品主播一区二区在线观看 | 国产一二三精品| 狠狠狠色丁香婷婷综合久久五月| 亚洲美女屁股眼交3| 国产精品色婷婷| 亚洲男人天堂av网| 亚洲精品乱码久久久久久| 久久五月婷婷丁香社区| 久久精品一区二区三区不卡 | 国产精品欧美久久久久一区二区| 久久无码av三级| 久久久久久一级片| 国产农村妇女精品| 国产精品理论片在线观看| 五月天国产精品| 精品一区二区影视| 99视频超级精品| 欧美高清视频不卡网| 日韩一级精品视频在线观看| 7777精品伊人久久久大香线蕉的 | 欧美片网站yy| 久久日韩精品一区二区五区| 久久久蜜桃精品| 亚洲成av人在线观看| 免费看黄色91| 欧美主播一区二区三区| 国产区在线观看成人精品 | 精品无码三级在线观看视频| 91美女视频网站| 欧美国产成人精品| 免费一级片91| 欧美日产国产精品| 一级日本不卡的影视| 国产乱码字幕精品高清av | 韩国av一区二区三区在线观看| 成人综合在线观看| 欧美大片国产精品| 亚洲在线成人精品| 色综合久久久久综合体| 亚洲欧美在线另类| 成人高清视频免费观看| 久久精品夜色噜噜亚洲a∨| 日本亚洲最大的色成网站www| 91一区二区三区在线播放| 久久精品在这里| 91香蕉视频mp4| 日韩高清一区在线| 国产欧美一区二区三区网站| 国产剧情av麻豆香蕉精品| 国产精品免费人成网站| 国产成人精品www牛牛影视| 国产精品狼人久久影院观看方式| 床上的激情91.| 一区二区在线观看视频在线观看| 91视视频在线直接观看在线看网页在线看| 欧美激情中文字幕| 日韩一区二区高清| 成人国产精品免费| 国产精品久99| 欧美日韩亚洲综合一区二区三区| 日本麻豆一区二区三区视频| 精品对白一区国产伦| 国产福利精品一区| 秋霞电影一区二区| 亚洲最大成人综合| 最新国产成人在线观看| 久久久久久久久97黄色工厂| 精品视频全国免费看| av中文字幕不卡| 国产美女一区二区| 日韩经典一区二区| 日本强好片久久久久久aaa| 国产精品的网站| 亚洲天天做日日做天天谢日日欢| 精品久久五月天| 欧美丰满少妇xxxbbb| 欧美一区二区视频免费观看| 在线观看91精品国产入口| 色综合av在线| 欧美一区国产二区| 久久蜜桃av一区精品变态类天堂| 欧美国产日韩精品免费观看| 欧美一级欧美三级在线观看| 欧美色电影在线| 91精品综合久久久久久| 日韩亚洲欧美在线观看| 精品国产一区二区三区久久影院| 4438x成人网最大色成网站| 欧美日韩精品一二三区| 日韩一区二区免费在线电影 | 成人av在线资源| 国产99精品视频| 欧洲另类一二三四区| 欧美一区二区三区爱爱| 精品久久99ma| 中文字幕在线观看一区二区| 中文字幕欧美一| 亚洲在线视频一区| 蜜桃久久精品一区二区| 国产成人夜色高潮福利影视| 91麻豆自制传媒国产之光| 欧美自拍偷拍午夜视频| 日韩美女天天操| 国产精品三级av在线播放| 五月婷婷激情综合网| 国产不卡高清在线观看视频| 91在线观看污| 国产欧美精品一区aⅴ影院| 午夜视频久久久久久| av成人动漫在线观看| 国产色婷婷亚洲99精品小说| 午夜免费久久看| 欧美性xxxxx极品少妇| 亚洲日本一区二区| 国产成人高清在线| 国产女主播一区| 国产精品一区二区在线观看网站| 51精品久久久久久久蜜臀| 亚洲综合一区二区精品导航| 97se亚洲国产综合在线| 日本一区二区三区高清不卡 | 欧美一级专区免费大片| 日韩成人一区二区| 亚洲精品在线三区| 91日韩一区二区三区| 亚洲一二三区在线观看| 久久久一区二区三区捆绑**| 成人激情电影免费在线观看| 亚洲一区二区三区四区在线免费观看| 欧美在线视频不卡| 日本视频中文字幕一区二区三区|