loser是什么意思| 胆小怕事是什么生肖| 双子是什么星座| 气短气喘吃什么药| 甲状腺密度不均匀是什么意思| 潜血弱阳性是什么意思| 孕妇梦见洪水是什么意思| 严什么的作风| 马子是什么意思| 撒拉族和回族有什么区别| 痛风忌口不能吃什么东西| 类风湿不能吃什么东西| 实至名归什么意思| 脑瘤是什么原因引起的| jf是什么警察| whoo是什么牌子| 为什么会孕酮低| 皮蛋吃多了有什么危害| 23是什么生肖| 脱髓鞘疾病是什么病| 气管小憩室是什么意思| 怀孕早期吃什么| 见分晓是什么意思| SEX是什么| 夏天适合种什么蔬菜| 淋巴细胞是什么意思| 后天是什么意思| 男人梦见龙是什么征兆| 经常泡脚有什么好处| 什么的高山| 什么是富氢水| 子宫内膜回声不均匀是什么意思| 伏案工作是什么意思| 桂圆跟龙眼有什么区别| 梦想成真是什么意思| 过房是什么意思| 产检挂什么科室| 嘴角生疮是什么原因| 炖牛肉放什么料| 吃什么容易消化| 牛头不对马嘴是什么意思| 湿疹抹什么药| 醋纤是什么面料| 什么是前奶什么是后奶| 线下培训是什么意思| 左脸上长痘痘是什么原因| 椎间盘突出挂什么科| 黑色阔腿裤搭配什么上衣好看| 脸上皮肤痒是什么原因| 什么叫处方药| 女人吃什么对卵巢和子宫好| 上挂是什么意思| 衍心念什么| 父母都没有狐臭为什么孩子会有呢| 裹小脚是什么时候开始的| 王字旁行念什么| 自我安慰是什么意思| 尿妊娠试验是检查什么| 男人精子少是什么原因| 中暑是什么症状| 香蕉和什么一起吃能减肥| 啮齿类动物什么意思| 恶病质是什么意思| 女孩名字带什么字好听| 吃什么排黑色素最强| 补肾吃什么药效果最好| 人为什么会自杀| 只欠东风的上一句是什么| 大圣是什么生肖| 一个提手一个京念什么| 梦见栽树是什么预兆| 三百年前是什么朝代| 虎父无犬子是什么意思| 人走茶凉下一句是什么| 今年30岁属什么生肖| 蜜蜂飞进家里预示什么| 眼睛经常长麦粒肿是什么原因| 补办结婚证需要什么手续| 什么什么的眼睛| 什么床垫好| 副厅长是什么级别| 如何知道自己适合什么发型| 男性内分泌科检查什么| 浓绿的什么| exchange是什么意思| 家里为什么会有蜈蚣| 人为什么要喝酒| 喝啤酒不能吃什么| enne是什么烟| 第一次坐飞机需要注意什么| 肿瘤指标偏高什么意思| 375是什么意思| 省委书记什么级别| 梦见好多死人是什么征兆| 静待花开什么意思| 追溯码是什么意思| 诸侯国是什么意思| 露营什么意思| blush是什么颜色| 发迹是什么意思| 气喘吁吁什么意思| 幼犬吃什么| 女人取环什么时候最好| 廿年是什么意思| 酱酱酿酿是什么意思| 腰酸胀是什么原因| 什么样的水花| 得性病有什么症状| 吃螃蟹不能吃什么| 脯氨酸氨基肽酶阳性是什么意思| 鸡炖什么补气血| 扁桃体发炎是什么引起的| 嗓子疼喝什么饮料| 惊鸿一面是什么意思| 益生元和益生菌有什么区别| 粗脖子病是什么原因引起的| mlb是什么牌子| 眼睛突然红了是什么原因| 右眼袋跳动是什么原因| 什么是孤独| 虚构是什么意思| 海南有什么水果| 网黄是什么意思| 玉米须能治什么病| 特派员是什么级别| 结膜炎用什么眼药水效果好| 逸搏心律什么意思| 梦见蛇和老鼠是什么意思| 河蚌吃什么食物| 吃生蚝补什么| hb是什么意思| 重阳节是什么生肖| 5月13日什么星座| 胃酸反流是什么原因造成| 小孩发烧挂什么科| 素鸡是用什么做的| 迎春花是什么颜色的| 24h是什么意思| 手麻挂什么科| 饭后散步有什么好处| 肝硬化失代偿期是什么意思| 肺门不大是什么意思| 宫颈管短有什么症状| 黑便是什么原因引起的| 以什么见什么| 须发早白吃什么中成药| o和b型生的孩子是什么血型| 1997年的牛是什么命| 什么是认证| 混合痔是什么意思| 什么叫阳虚| 什么行业赚钱| 璋字五行属什么| 什么叫高危性行为| 1994年是什么年| 狻猊是什么动物| 希腊脚是什么意思| 透析到什么程度会死亡| 热结旁流是什么意思| 浅卡其色裤子配什么颜色上衣| 头发老是出油是什么原因| 毫无保留什么意思| 年轻人长老年斑是什么原因| 无花果吃多了有什么坏处| 诸葛亮儿子叫什么| 四肢麻木是什么病| 来大姨妈喝红糖水有什么作用| 乳房疼痛吃什么消炎药| 上网是什么意思| 炖鱼放什么调料| 孕妇吃什么坚果比较好| 小孩铅过高有什么症状| 竣字五行属什么| 见干见湿是什么意思| 水险痣什么意思| 道理是什么意思| 为什么会梦到一个人| 自言自语的近义词是什么| 什么叫肾功能不全| 六度万行 是什么意思| 磷脂是什么东西| 男属龙和什么属相最配| 巨蟹座是什么星象| nak是什么牌子| 空气缸是什么意思| 洗漱是什么意思| ipa啤酒什么意思| rpl是什么意思| 牙龈出血是什么病的前兆| 颈椎不好挂什么科| 皮肤发痒是什么原因| 梦见被追杀是什么预兆| 为什么会长水痘| 胸部里面有个圆圆的硬东西是什么| 地动山摇是什么生肖| 睡午觉有什么好处| 肩周炎属于什么科室| 三个马念什么| 石化是什么意思| 撕裂是什么意思| 草莓像什么| 银子发黑是什么原因| 有点想吐是什么原因| 冬虫夏草是什么东西| 发烧了吃什么食物好| 牙髓是什么| 克山病是什么病| 什么原因引起低压高| pet是什么意思| 支抗钉是什么| 孕酮低什么原因| 界定是什么意思| 00年是什么命| 头七有什么讲究| 入户口需要什么资料| 精油有什么作用| 扁平疣是什么引起的| 毕业花束选什么花| 肚子咕咕叫放屁多是什么原因| 螺旋杆菌阳性是什么病| 深圳属于什么方向| 氟苯尼考兽药治什么病| 怀孕有什么特征和反应| 神经衰弱看什么科| 官方的意思是什么| 高血压有什么危害| 为什么佛山有三个车牌| 来大姨妈肚子疼是什么原因| 灵芝孢子粉治什么病| 抽烟是什么感觉| 舌苔厚口臭吃什么药好| 早孕是什么意思| 中暑吃什么食物好| 故的偏旁是什么| 什么是矿物质| 病毒性肠炎吃什么药| 戴黄金对身体有什么好处| 4月20日是什么星座| 省长属于什么级别| 洗头什么时间洗最好| 大林木命忌讳什么颜色| 1月11日是什么星座| 感冒吃什么药好得快| 两个叉念什么| 草龟吃什么食物| 梦到吃蛇肉预示着什么| 燕窝有什么功效| 吃什么东西补铁| 多吃香蕉有什么好处和坏处| 落地成盒什么意思| 泡泡什么意思| 养老院靠什么挣钱| 乳糜血是什么意思| 什么水越洗越脏| 花中四君子是什么| 什么的杜鹃花| 大舌头是什么意思| 什么旺土| 唐氏综合征是什么原因造成的| 什么情况下要打破伤风| gln是什么意思| 咳嗽有痰吃什么水果| 心脏跳动过快吃什么药| 儿童腮腺炎挂什么科| 百度
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_name [ ( column_name [, ...] ) ]
    { 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_name

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

column_name

The name of a column in the table named by table_name. 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 named by table_name. 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.

养肝护肝吃什么最好 感冒了吃什么水果比较好 化疗期间吃什么升白细胞快 膀胱湿热吃什么中成药 睡眠不好会引起什么症状
vivo是什么牌子的手机 exp是什么 什么茶降血压效果最好 mac是什么意思啊 少将属于什么级别
女生为什么喊你男神 什么水最解渴 梦到自己长白头发是什么意思 绩效工资是什么意思 脂蛋白磷脂酶a2高说明什么
优甲乐过量有什么症状 疖子是什么 胎盘前置是什么意思 白癜风是什么症状 膝盖疼痛挂什么科
戊肝阳性是什么意思hcv8jop2ns0r.cn 上皮细胞高是什么原因hcv8jop9ns6r.cn 间隙是什么意思hcv8jop7ns5r.cn 茄子与什么食物相克hcv9jop4ns7r.cn 5月25是什么星座hcv9jop4ns5r.cn
老打饱嗝是什么原因hcv8jop7ns0r.cn 三花聚顶是什么修为hcv8jop7ns0r.cn 曾是什么意思hcv7jop6ns3r.cn 早上眼屎多是什么原因yanzhenzixun.com 肾结石少吃什么食物jasonfriends.com
养胃喝什么0735v.com 30年婚姻是什么婚luyiluode.com 欧巴桑是什么意思hcv9jop6ns4r.cn 狗皮膏药什么意思hcv7jop6ns3r.cn 蝎子吃什么东西hcv7jop4ns6r.cn
女人什么时候是安全期hcv8jop4ns8r.cn 出库是什么意思hcv8jop5ns7r.cn galaxy是什么牌子hcv8jop9ns1r.cn 元旦吃什么imcecn.com 猫眼是什么hcv9jop3ns5r.cn
百度