碱性磷酸酶是什么| 日落胭脂红的下一句是什么| 活动是什么意思| 仰天长叹的意思是什么| 博物馆里有什么| 08属什么生肖| 戒备心是什么意思| 紫皮大蒜和白皮大蒜有什么区别| fvc是什么意思| 为什么一热脸就特别红| 无可厚非什么意思| 茶寿为什么是108岁| 怀孕肚子痒是什么原因| 碳14和碳13有什么区别| 什么的点头| 产后抑郁症有什么表现症状| 西咪替丁是治什么病| 蟒袍是什么人穿的| 新百伦鞋子什么档次| 曹操是什么星座| EPS什么意思| np文是什么意思| 什么是人生格言| 梅核气吃什么药| 可可和咖啡有什么区别| 穿刺检查是什么意思| 喉咙发苦是什么原因造成的| times什么意思| 梦见山体滑坡是什么意思| 手脚抽筋是什么原因引起的| 益生菌的食物是什么| 家庭主妇是什么意思| 承德有什么大学| 末伏是什么意思| hb是什么意思医学| 桂林是什么地貌| 肠胃炎是什么引起的| 送向日葵代表什么意思| 双侧肋膈角锐利是什么意思| 御木本是什么档次| 出其不意下一句是什么| 中医讲肾主什么| 嗓子干痒是什么原因| 下肢静脉血栓吃什么药| 轻度抑郁有什么症状| 为什么手会掉皮| 异性恋是什么意思| 喉咙看什么科| 头发长的快是什么原因| 一个木一个舌读什么| rot是什么意思| 仓鼠喜欢吃什么| 同型半胱氨酸查什么| 老年脑是什么病| 如家是什么内涵| 男人尿道炎吃什么药最好| 身体逐渐消瘦是什么原因| 弯弯的彩虹像什么| 三个水念什么| 面部痉挛吃什么药| 什么食粮| 捕风捉影是什么意思| 小便泡沫多是什么原因| 蓝莓有什么营养价值| 尿液细菌高是什么原因| 摇头是什么病| 闰月年有什么讲究| 薄荷脑是什么东西| iq什么意思| 2002年属什么生肖| 白砂糖和冰糖有什么区别| 明目退翳是什么意思| 翊字五行属什么| 三月六号是什么星座| 玉米有什么营养价值| 惊弓之鸟什么意思| 梦见盖房子什么意思| 舌下腺囊肿挂什么科| 鸳鸯是什么意思| 青柠是什么意思| 中老年人补钙吃什么牌子的钙片好| 美团和美团外卖有什么区别| 姨妈期间吃什么水果| 琉璃是什么材质| 发痧是什么原因造成的| 清肺热用什么泡水喝比较好| 甘油三酯高吃什么| 眼睛红红的是什么生肖| 摸摸头是什么意思| 1975年属兔的是什么命| 梦见娃娃是什么意思| 体外射精什么意思| 拉肚子吃什么水果好| 颈椎疼吃什么药| 什么药和酒一起吃必死| 左腰疼是什么原因| 三乙醇胺是什么东西| 什么的医生| 梦见输钱是什么预兆| 女娲用什么补天| 腼腆是什么意思| 胖大海和什么搭配最好| 电视为什么打不开| 熟的反义词是什么| 狗不吃饭是什么原因| 低血糖吃什么最快缓解| 为什么叫太平间| 灼热是什么意思| 挂钟挂在客厅什么位置好| 备孕男性检查什么项目| 什么是生辰八字| 尿胆原阴性是什么意思| 肌肉疼痛挂什么科| 登革热是什么病| 70年是什么婚| 乾隆为什么长寿| slay是什么意思| 尊敬是什么意思| 草酸是干什么用的| 中国的国宝是什么| 嘴苦是什么病的征兆| 早餐做什么| 神是什么偏旁| amo是什么意思| 5月23日是什么星座| walls是什么意思| 不老实是什么意思| 丝苗米是什么米| 原发性是什么意思| 什么烟贵| 梦见猫头鹰是什么预兆| 血压低头疼是什么原因| 女人吃鹿茸有什么好处| 海之蓝是什么香型| 述求是什么意思| 护资成绩什么时候出| 血红蛋白偏低什么意思| 牙齿松动吃什么药| 合卺是什么意思| 吃维生素a有什么好处| 草字头加弓念什么| 焦作有什么大学| 皮肤长癣是什么原因引起的| 上腹部饱胀是什么原因| 抠是什么意思| 晕车吃什么好| 迷走神经是什么| 稷字五行属什么| 卤水是什么水| 人为什么要抽烟| 低血压有什么症状| 射手座属于什么星象| 腰不好挂什么科| 声带白斑是什么病严重吗| 呆呆的笑是什么笑| 乙肝e抗体阳性是什么意思| 三八妇女节是什么生肖| 铁观音茶属于什么茶| 召力念什么| 银属于五行属什么| 什么时候入盆| 急性扁桃体炎什么原因导致的| 无语什么意思| 小肚子胀是什么原因女性| 2044年是什么年| 孩子总爱哭是什么原因| 夏天可以种什么蔬菜| 变更是什么意思| crocs是什么牌子| 黑白蛇是什么蛇| 伤口止血用什么药| 肺钙化灶是什么意思| 孕妇尿酸高是什么原因| 肝部有阴影一般都是什么病| 门静脉增宽是什么意思| 女人纵欲过度会有什么症状| 什么车可以闯红灯| 艺体生是什么意思| 鼻子突然流血是什么原因| 为什么老虎头上有王字| 脾胃不好可以吃什么水果| 四个火读什么| 全血粘度低切偏高是什么意思| 口腔溃疡能吃什么| 耐药性是什么意思| 大作是什么意思| 精子碎片率高吃什么药| 能耐是什么意思| 23是什么生肖| 午饭吃什么| 夏至未至是什么意思| 过生日吃什么菜| 吃什么补记忆力最快| 秦始皇什么星座| 为什么脚会有酸臭味| 男人鼻子大代表什么| 是什么结构| 乌玛王是什么牌子| 淋巴炎吃什么药效果好| 三月出生的是什么星座| h表示什么| 柠檬酸是什么| 枕神经痛吃什么药| 叶公好龙告诉我们什么道理| 梦见好多猪是什么意思| 司是什么级别| 冬天吃什么| 枭神夺食会发生什么| 腰间盘突出是什么症状| 钠低会出现什么症状| 痛风吃什么菜比较好| 胃泌素17是什么检查| dna倍体异常细胞是什么意思| 拉稀屎是什么原因| 什么情况下怀疑白血病| 宿便是什么意思| 喝黑咖啡有什么好处| 腿疼是什么原因| 俞字五行属什么| 夏季吃桃子有什么好处| 什么是抗氧化| 物以类聚形容什么动物| 舌头麻木吃什么药| 四不放过是指什么| 赛博朋克什么意思| 萎缩是什么意思| 血虚吃什么中成药最好| 什么什么和谐| 什么是内分泌| 什么是白色家电| 嘴角上扬是什么意思| 什么动物寿命最短| 2月17日是什么星座| 标题是什么意思| 颌下淋巴结肿大吃什么药| 会车是什么意思| 百合什么时候种植| 红得什么| 蝙蝠飞进家里预示什么| 拔罐什么时候拔最好| 脸跳动是什么原因| 洗牙有什么好处和坏处| 验尿白细胞高是什么原因| 凡人修仙传什么时候写的| 陈皮和橘子皮有什么区别| 蒲公英有什么功效| 五月二十四号是什么星座| 芒果不能和什么食物一起吃| dr拍片是检查什么的| 不一般是什么意思| 女人吃秋葵有什么好处| 断生是什么意思啊| 四十岁月经量少是什么原因| 生僻字是什么意思| 刺瘊子是什么原因造成的| 颠了是什么意思| 大便次数多是什么原因| 2009年五行属什么| 小叶增生吃什么药好| 冬菜是什么菜| 小孩子手足口病有什么症状图片| 5月22日什么星座| 肌酐高是什么原因引起的| 什么是孽缘| 百度
Supported Versions: Current (17) / 16 / 15 / 14 / 13
Development Versions: 18 / devel
Unsupported versions: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4 / 7.3 / 7.2 / 7.1
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

台当局模拟大陆美国贸易战:受伤最重是台湾贸易战大陆台湾

Name

INSERT -- create new rows in a table

Synopsis

百度 她用事实证明,翡翠这个东西完全是可以年轻态和代入时尚感的好么。
[ WITH [ RECURSIVE ] with_query [, ...] ]
INSERT INTO table [ ( column [, ...] ) ]
    { DEFAULT VALUES | VALUES ( { expression | DEFAULT } [, ...] ) [, ...] | query }
    [ RETURNING * | output_expression [ [ AS ] output_name ] [, ...] ]

Description

INSERT inserts new rows into a table. One can insert one or more rows specified by value expressions, or zero or more rows resulting from a query.

The target column names can be listed in any order. If no list of column names is given at all, the default is all the columns of the table in their declared order; or the first N column names, if there are only N columns supplied by the VALUES clause or query. The values supplied by the VALUES clause or query are associated with the explicit or implicit column list left-to-right.

Each column not present in the explicit or implicit column list will be filled with a default value, either its declared default value or null if there is none.

If the expression for any column is not of the correct data type, automatic type conversion will be attempted.

The optional RETURNING clause causes INSERT to compute and return value(s) based on each row actually inserted. This is primarily useful for obtaining values that were supplied by defaults, such as a serial sequence number. However, any expression using the table's columns is allowed. The syntax of the RETURNING list is identical to that of the output list of SELECT.

You must have INSERT privilege on a table in order to insert into it. If a column list is specified, you only need INSERT privilege on the listed columns. Use of the RETURNING clause requires SELECT privilege on all columns mentioned in RETURNING. If you use the query clause to insert rows from a query, you of course need to have SELECT privilege on any table or column used in the query.

Parameters

with_query

The WITH clause allows you to specify one or more subqueries that can be referenced by name in the INSERT query. See Section 7.8 and SELECT for details.

It is possible for the query (SELECT statement) to also contain a WITH clause. In such a case both sets of with_query can be referenced within the query, but the second one takes precedence since it is more closely nested.

table

The name (optionally schema-qualified) of an existing table.

column

The name of a column in table. The column name can be qualified with a subfield name or array subscript, if needed. (Inserting into only some fields of a composite column leaves the other fields null.)

DEFAULT VALUES

All columns will be filled with their default values.

expression

An expression or value to assign to the corresponding column.

DEFAULT

The corresponding column will be filled with its default value.

query

A query (SELECT statement) that supplies the rows to be inserted. Refer to the SELECT statement for a description of the syntax.

output_expression

An expression to be computed and returned by the INSERT command after each row is inserted. The expression can use any column names of the table. Write * to return all columns of the inserted row(s).

output_name

A name to use for a returned column.

Outputs

On successful completion, an INSERT command returns a command tag of the form

INSERT oid count

The count is the number of rows inserted. If count is exactly one, and the target table has OIDs, then oid is the OID assigned to the inserted row. Otherwise oid is zero.

If the INSERT command contains a RETURNING clause, the result will be similar to that of a SELECT statement containing the columns and values defined in the RETURNING list, computed over the row(s) inserted by the command.

Examples

Insert a single row into table films:

INSERT INTO films VALUES
    ('UA502', 'Bananas', 105, '2025-08-08', 'Comedy', '82 minutes');

In this example, the len column is omitted and therefore it will have the default value:

INSERT INTO films (code, title, did, date_prod, kind)
    VALUES ('T_601', 'Yojimbo', 106, '2025-08-08', 'Drama');

This example uses the DEFAULT clause for the date columns rather than specifying a value:

INSERT INTO films VALUES
    ('UA502', 'Bananas', 105, DEFAULT, 'Comedy', '82 minutes');
INSERT INTO films (code, title, did, date_prod, kind)
    VALUES ('T_601', 'Yojimbo', 106, DEFAULT, 'Drama');

To insert a row consisting entirely of default values:

INSERT INTO films DEFAULT VALUES;

To insert multiple rows using the multirow VALUES syntax:

INSERT INTO films (code, title, did, date_prod, kind) VALUES
    ('B6717', 'Tampopo', 110, '2025-08-08', 'Comedy'),
    ('HG120', 'The Dinner Game', 140, DEFAULT, 'Comedy');

This example inserts some rows into table films from a table tmp_films with the same column layout as films:

INSERT INTO films SELECT * FROM tmp_films WHERE date_prod < '2025-08-08';

This example inserts into array columns:

-- Create an empty 3x3 gameboard for noughts-and-crosses
INSERT INTO tictactoe (game, board[1:3][1:3])
    VALUES (1, '{{" "," "," "},{" "," "," "},{" "," "," "}}');
-- The subscripts in the above example aren't really needed
INSERT INTO tictactoe (game, board)
    VALUES (2, '{{X," "," "},{" ",O," "},{" ",X," "}}');

Insert a single row into table distributors, returning the sequence number generated by the DEFAULT clause:

INSERT INTO distributors (did, dname) VALUES (DEFAULT, 'XYZ Widgets')
   RETURNING did;

Increment the sales count of the salesperson who manages the account for Acme Corporation, and record the whole updated row along with current time in a log table:

WITH upd AS (
  UPDATE employees SET sales_count = sales_count + 1 WHERE id =
    (SELECT sales_person FROM accounts WHERE name = 'Acme Corporation')
    RETURNING *
)
INSERT INTO employees_log SELECT *, current_timestamp FROM upd;

Compatibility

INSERT conforms to the SQL standard, except that the RETURNING clause is a PostgreSQL extension, as is the ability to use WITH with INSERT. Also, the case in which a column name list is omitted, but not all the columns are filled from the VALUES clause or query, is disallowed by the standard.

Possible limitations of the query clause are documented under SELECT.

验光挂什么科 生吃洋葱有什么好处 胳膊出汗是什么原因 血常规检查什么 侧记是什么意思
2001年是什么生肖 维生素ad和d3有什么区别 青椒炒什么好吃又简单 促排药什么时候开始吃 养狗人容易得什么病
身体怕热是什么原因 口杯是什么意思 盆腔积液是什么原因引起的 为什么经常拉肚子 变异性哮喘什么症状
空挡是什么意思 精神分裂症吃什么药 肺部结节灶是什么意思啊 梅核气是什么病 湿疹用什么药效果好
孕酮是什么hcv7jop9ns7r.cn 梭织是什么意思hcv7jop9ns7r.cn cd4是什么意思hcv9jop2ns7r.cn 地震为什么会发生qingzhougame.com 唯有女子与小人难养也什么意思hcv7jop7ns2r.cn
牙齿一吸就出血是什么原因hanqikai.com 腰封是什么意思hcv7jop6ns5r.cn 屎是黑色的是什么原因hcv8jop3ns2r.cn 乌江鱼是什么鱼hcv8jop1ns2r.cn 呼吸有异味是什么原因1949doufunao.com
怀孕失眠是什么原因hcv8jop0ns9r.cn 前夕是什么意思hcv9jop8ns0r.cn 星期三左眼皮跳是什么预兆xjhesheng.com 肛门指检能查出什么hcv7jop6ns3r.cn 清谷天指的是什么hcv8jop2ns9r.cn
医院打耳洞挂什么科adwl56.com 皮脂腺痣是什么原因引起的bfb118.com 罗姓男孩取什么名字好hcv7jop4ns7r.cn 脑彩超能检查出什么hcv9jop3ns2r.cn 内务是什么意思hcv8jop3ns3r.cn
百度