<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 7.7\. `VALUES`列表 可以在查詢中使用由`VALUES`生成的"常數表", 而無需在磁盤上實際創建這個表。語法如下: ``` VALUES ( _expression_ [, ...] ) [, ...] ``` 每個括號中的表達式列表生成表中的一行。每個列表中的項數(也就是字段數)必須相等, 并且對應的數據類型必須兼容。最終表中每個字段的數據類型將使用與`UNION` (參見[Section 10.5](#calibre_link-454))相同的規則確定。 例如: ``` VALUES (1, 'one'), (2, 'two'), (3, 'three'); ``` 將得到 2 列 3 行的表。并且與下面的語句等價: ``` SELECT 1 AS column1, 'one' AS column2 UNION ALL SELECT 2, 'two' UNION ALL SELECT 3, 'three'; ``` PostgreSQL默認將`VALUES` 所得到的表中各字段分別命名為`column1`, `column2`等等。 SQL 標準并未規定此種情況下的字段名命名規范,不同的數據庫系統對此的處理也各不相同, 所以最好明確指定字段的名字,像下面這樣: ``` => SELECT * FROM (VALUES (1, 'one'), (2, 'two'), (3, 'three')) AS t (num,letter); num | letter -----+-------- 1 | one 2 | two 3 | three (3 rows) ``` 語法上,帶有表達式列表的`VALUES`和下面的語句等價: ``` SELECT _select_list_ FROM _table_expression_ ``` 并且可以出現在任何`SELECT`可以出現的地方。例如,你可以把它用于`UNION` 的一部分,或者在其上附加一個`_sort_specification_` (`ORDER BY`,`LIMIT`,`OFFSET`)。`VALUES` 通常用作`INSERT`命令的數據源或者子查詢。 更多信息參見[VALUES](#calibre_link-106)。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看