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

SELECT INTO 中文man頁面

系統(tǒng)
SELECT INTO 從一個(gè)查詢的計(jì)算結(jié)果中創(chuàng)建一個(gè)新表。 數(shù)據(jù)并不返回給客戶端,這一點(diǎn)和普通的 SELECT 不同。 新表的字段具有和 SELECT 的輸出字段相關(guān)聯(lián)(相同)的名字和數(shù)據(jù)類型。

NAME

SELECT INTO - 從一個(gè)查詢的結(jié)果中創(chuàng)建一個(gè)新表

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 從一個(gè)查詢的計(jì)算結(jié)果中創(chuàng)建一個(gè)新表。 數(shù)據(jù)并不返回給客戶端,這一點(diǎn)和普通的 SELECT 不同。 新表的字段具有和 SELECT 的輸出字段相關(guān)聯(lián)(相同)的名字和數(shù)據(jù)類型。  

PARAMETERS 參數(shù)

TEMPORARY 或 TEMP

 如果聲明了這個(gè)關(guān)鍵字,那么該表是作為一個(gè)臨時(shí)表創(chuàng)建的。 請(qǐng)參考 CREATE TABLE [create_table(7)] 獲取細(xì)節(jié)。
new_table

 要?jiǎng)?chuàng)建的表的表名(可以有模式修飾)。


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

NOTES 注意

CREATE TABLE AS [create_table_as(7)] 的作用和 SELECT INTO 相同。 我們建議使用 CREATE TABLE AS 語法, 因?yàn)?SELECT INTO 不是標(biāo)準(zhǔn)語法。 實(shí)際上,這種類型的 SELECT INTO 是不能在 ECPG 或者 PL/pgSQL 中使用的, 因?yàn)樗鼈儗?duì) INTO 子句的解釋是不同的。  

COMPATIBILITY 兼容性


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

#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.)

責(zé)任編輯:韓亞珊 來源: CMPP.net
相關(guān)推薦

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:03:21

ACCESS中文man

2011-08-11 15:28:43

ali中文man

2011-08-11 16:31:49

biff中文man

2011-08-11 17:16:43

cce中文man

2011-08-11 18:05:04

chvt中文man

2011-08-11 18:13:07

clear中文man

2011-08-12 09:13:02

df中文man

2011-08-12 09:38:06

dircolors中文man

2011-08-12 09:44:37

dirname中文man

2011-08-12 10:20:02

echo中文man

2011-08-12 10:25:55

eject中文man

2011-08-12 11:07:19

git中文man

2011-08-12 13:18:19

head中文man

2011-08-12 13:49:23

hostid中文man

2011-08-12 13:54:46

hostname中文man
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 免费久草| 日日操操操 | av黄色在线 | 久久精品91久久久久久再现 | 国产欧美精品区一区二区三区 | 亚洲91av | 天天综合网7799精品 | 欧美一区二区在线观看 | 欧美久久久久久久 | 伊人在线 | a级片在线观看 | 欧美日韩久久 | 久久日韩精品 | 日韩 欧美 二区 | 中文在线一区二区 | 欧美99| 国产精品久久国产精品久久 | 亚洲一区在线观看视频 | 国产精品日韩欧美 | 91在线免费视频 | 亚洲精品福利视频 | 欧美一级久久 | 中文字幕一区二区三区日韩精品 | 在线国产视频观看 | 羞羞涩涩在线观看 | 国产九一精品 | 91九色婷婷| 亚洲精品电影网在线观看 | 天天爽夜夜骑 | 国产精品久久网 | 91在线网站 | 美女视频三区 | 日批的视频 | 亚洲天堂色 | 一区二区在线 | 国产成人免费在线观看 | 日韩欧美在线播放 | 日本久久黄色 | 日韩在线资源 | 亚洲成人av | 国产精品一区二区久久 |