成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

SELECT INTO 中文man頁面

系統
SELECT INTO 從一個查詢的計算結果中創建一個新表。 數據并不返回給客戶端,這一點和普通的 SELECT 不同。 新表的字段具有和 SELECT 的輸出字段相關聯(相同)的名字和數據類型。

NAME

SELECT INTO - 從一個查詢的結果中創建一個新表

SYNOPSIS

SELECT [ ALL | DISTINCT [ ON ( expression [, ...] ) ] ]
    * | expression [ AS output_name ] [, ...]
    INTO [ TEMPORARY | TEMP ] [ TABLE ] new_table
    [ FROM from_item [, ...] ]
    [ WHERE condition ]
    [ GROUP BY expression [, ...] ]
    [ HAVING condition [, ...] ]
    [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]
    [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ]
    [ LIMIT { count | ALL } ]
    [ OFFSET start ]
    [ FOR UPDATE [ OF tablename [, ...] ] ]

DESCRIPTION 描述

SELECT INTO 從一個查詢的計算結果中創建一個新表。 數據并不返回給客戶端,這一點和普通的 SELECT 不同。 新表的字段具有和 SELECT 的輸出字段相關聯(相同)的名字和數據類型。  

PARAMETERS 參數

TEMPORARY 或 TEMP

 如果聲明了這個關鍵字,那么該表是作為一個臨時表創建的。 請參考 CREATE TABLE [create_table(7)] 獲取細節。
new_table

 要創建的表的表名(可以有模式修飾)。


 所有其它輸入的域都在 SELECT [select(7)] 中有詳細描述。

NOTES 注意

CREATE TABLE AS [create_table_as(7)] 的作用和 SELECT INTO 相同。 我們建議使用 CREATE TABLE AS 語法, 因為 SELECT INTO 不是標準語法。 實際上,這種類型的 SELECT INTO 是不能在 ECPG 或者 PL/pgSQL 中使用的, 因為它們對 INTO 子句的解釋是不同的。  

COMPATIBILITY 兼容性


 SQL 標準用 SELECT ... INTO 表示選取數值到一個宿主程序的標量變量中, 而不是創建一個新表。這種用法實際上就是在 ECPG  (參閱 Chapter 29)和PL/pgSQL  (Chapter 35)里的用途。 PostgreSQL 用 SELECT INTO 代表創建表的意思是歷史原因。 在新代碼里我們***使用 CREATE TABLE AS 實現這個目地。 (CREATE TABLE AS 也不是標準,但至少它出現混淆的機會少一些。)  

#p#

NAME

SELECT INTO - create a new table from the results of a query

SYNOPSIS

SELECT [ ALL | DISTINCT [ ON ( expression [, ...] ) ] ]
    * | expression [ AS output_name ] [, ...]
    INTO [ TEMPORARY | TEMP ] [ TABLE ] new_table
    [ FROM from_item [, ...] ]
    [ WHERE condition ]
    [ GROUP BY expression [, ...] ]
    [ HAVING condition [, ...] ]
    [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]
    [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ]
    [ LIMIT { count | ALL } ]
    [ OFFSET start ]
    [ FOR UPDATE [ OF tablename [, ...] ] ]

DESCRIPTION

SELECT INTO creates a new table and fills it with data computed by a query. The data is not returned to the client, as it is with a normal SELECT. The new table's columns have the names and data types associated with the output columns of the SELECT.  

PARAMETERS

TEMPORARY or TEMP
If specified, the table is created as a temporary table. Refer to CREATE TABLE [create_table(7)] for details.
new_table
The name (optionally schema-qualified) of the table to be created.

All other parameters are described in detail under SELECT [select(7)].

NOTES

CREATE TABLE AS [create_table_as(7)] is functionally equivalent to SELECT INTO. CREATE TABLE AS is the recommended syntax, since this form of SELECT INTO is not available in ECPG or PL/pgSQL, because they interpret the INTO clause differently.  

COMPATIBILITY

The SQL standard uses SELECT ... INTO to represent selecting values into scalar variables of a host program, rather than creating a new table. This indeed is the usage found in ECPG and PL/pgSQL. The PostgreSQL usage of SELECT INTO to represent table creation is historical. It's best to use CREATE TABLE AS for this purpose in new code. (CREATE TABLE AS isn't standard either, but it's less likely to cause confusion.)

責任編輯:韓亞珊 來源: CMPP.net
相關推薦

2011-08-24 17:42:52

SELECT中文man

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:39:39

apm中文man

2011-08-11 17:10:55

cat中文man

2011-08-11 17:35:07

chgrp中文man

2011-08-11 17:53:06

chown中文man

2011-08-11 17:59:24

chsh中文man

2011-08-11 18:07:57

cksum中文man

2011-08-11 18:19:32

col中文man

2011-08-11 18:58:08

date中文man

2011-08-12 09:17:57

deallocvt中文man

2011-08-12 09:23:16

dig中文man

2011-08-12 10:15:13

dumpkeys中文man

2011-08-12 10:41:00

file中文man

2011-08-12 11:15:27

gzip中文man

2011-08-12 13:26:56

groff中文man

2011-08-12 14:10:47

install中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 色偷偷噜噜噜亚洲男人 | 国产亚洲一区二区三区在线观看 | 国产91久久久久蜜臀青青天草二 | 亚洲精品久久久久久久久久久久久 | 99久久精品免费看国产四区 | 色在线免费视频 | 国产激情视频在线观看 | 综合久久色| 亚洲国产小视频 | av影音在线 | 中文二区 | 日日摸夜夜添夜夜添特色大片 | 国产乱码精品一区二区三区忘忧草 | 一级毛片免费 | 狠狠草视频 | 永久免费在线观看 | 欧洲一区二区三区 | 日韩有码一区 | 欧美精品一区二区在线观看 | 国产成人jvid在线播放 | 成人免费一级 | 欧美三区 | 久久日韩精品一区二区三区 | 国产一二区在线 | 日韩欧美中文在线 | 国产精品久久久久久久久久久久久久 | 亚洲精品一区二区 | 国产香蕉视频在线播放 | 99久久精品国产麻豆演员表 | 国产午夜精品一区二区三区四区 | av天天爽 | 最新国产在线 | 亚洲福利一区 | 中文字幕二区三区 | 精品国产一区二区在线 | 欧美日韩在线观看一区 | 精品视频国产 | 在线观看黄色电影 | 欧美一区二区三区视频在线播放 | 久久av一区二区三区 | 欧美一级观看 |