74年出生属什么生肖| 苹果跟什么榨汁好喝| 豆豉是什么东西| 甲功四项是什么检查项目| 口腔溃疡吃什么药好得快| 腰椎间盘突出什么症状| 嗓子疼低烧吃什么药| 骨髓穿刺是检查什么病| 7月26日是什么日子| 无菌敷贴是干什么用的| 舌苔黄腻吃什么中成药| 国师是什么意思| 中耳炎吃什么药最有效| 黄色配什么颜色最好看| 黄油是用什么做的| 灰度是什么意思| 田螺不能和什么一起吃| 乳腺增生样改变是什么意思| 扁平疣用什么药膏除根| 浓绿的什么| 00年属什么| 为什么养鱼双数是大忌| 头痛吃什么| 拖什么东西最轻松| 梦见栽树是什么意思| 变色龙吃什么食物| 了凡四训讲的是什么| 话少一般都是什么人| 心里害怕紧张恐惧是什么症状| 0是什么意思网络语言| 火和什么相生| alpha是什么意思| mri是什么意思| 小猫泪痕重什么原因| 西岳什么山| 脸上浮肿是什么原因导致的| 尿道感染看什么科| 全科门诊主要看什么| 起水痘需要注意什么| 胡萝卜与什么食物相克| 吃什么对肝好怎么养肝| 胎毒是什么样子的图片| 什么叫五官| 近视和远视有什么区别| 静电对人体有什么危害| 止咳化痰吃什么药| 有痰是什么原因| 广州有什么山| 伏特加是什么| 什么是血铅| 醋坛子是什么意思| 男羊配什么属相最好| 具象是什么意思| 胰腺炎恢复期吃什么好| 穷的生肖指什么生肖| 上相是什么意思| 新型冠状病毒有什么症状| 梨状肌综合征挂什么科| ssc是什么意思| 乳糖不耐受喝什么奶粉比较好| 大v什么意思| 心绞痛是什么原因引起的| 黄茶适合什么人喝| 人格魅力是什么意思| wpw综合症是什么意思| 农历十月十八是什么星座| 柠檬和什么一起泡减肥| 西双版纳有什么好玩的| 两个脚脖子肿什么原因| abo是什么| 肝肾功能检查挂什么科| 什么米最贵| 德艺双馨是什么意思| 脾湿热吃什么中成药| 铁观音属于什么茶类| 哮喘吃什么药管用| 为什么痣上面会长毛| 水车是什么意思| fmc是什么意思| 明前茶和明后茶有什么区别| 生脉饮适合什么人喝| 以梦为马什么意思| 空心菜是什么菜| 黑色五行属什么| 仓鼠可以吃什么蔬菜| 元宵节干什么| 忠武路演员是什么意思| 白陶土样便见于什么病| 血压高是什么症状| 羸弱什么意思| 每次来月经都会痛经什么原因| 伏羲姓什么| 雷人是什么意思| 悲观是什么意思| 茶不能和什么一起吃| 雁过拔毛是什么意思| 脚底板痒是什么原因| 政治信仰是什么| 粥样动脉硬化是什么意思| 手麻是什么情况| 神经性皮炎吃什么药| 儿童咳嗽吃什么药管用| 汤伤用什么药| 球蛋白高是什么意思| 丰年虾是什么| 什么是高情商| 筋头巴脑是什么肉| 频发室性早搏是什么意思| 锌是什么| 三伏贴能治什么病| 肝肾阴虚吃什么中成药| 人的血压一天中什么时候最高| 地主代表什么生肖| 四世同堂什么意思| 女性风湿吃什么东西好| zxj是什么意思| 梦见生孩子是什么意思解梦| 周岁和虚岁是什么意思| 尿比重高是什么意思| 匙仁是牛的什么部位| 吃什么都苦是什么原因| 舌头尖发麻是什么原因| vjc是什么品牌| 罗西尼手表什么档次| 接风是什么意思| 吃猪肝有什么好处和坏处| 1942年是什么年| 宝宝吃什么奶粉好| 手淫过度有什么症状| 吃什么可以降火| 机车什么意思| 胃隐隐作痛吃什么药| 12月14日什么星座| bmi是什么| 什么情况下需要打破伤风| 尿结石什么症状| 男生适合什么发型| 王毅是什么级别| 六角龙鱼吃什么| 黄金发红是什么原因| 知天命是什么意思| 梦见纸钱是什么预兆| 检查血压挂什么科| 宫颈纳囊是什么意思| 复位是什么意思| 肾虚什么意思| 深深是什么意思| 补办结婚证需要什么手续| 做尿常规挂什么科| 丙氨酸氨基转移酶高是什么原因| 微信什么时候有的| 大姨妈来了可以吃什么水果| 鱼腥草有什么用处| 眉毛痒痒代表什么预兆| 6s是什么| 刘强东属什么生肖| 啼笑皆非的意思是什么| 天秤座的幸运色是什么| 什么叫子宫肌瘤| 即日是什么意思| 1972年五行属什么| 孕妇d2聚体高是什么原因| 吃什么补充维生素b6| dia是什么意思| 梦见自己结婚了是什么意思| 吃什么尿酸降得快| 甜字五行属什么| 本字五行属什么| 什么样的升旗仪式| 录取线差是什么意思| 斜纹棉是什么面料| 1989是什么生肖| 荨麻疹不能吃什么| giuseppe是什么牌子| 为什么微信运动总是显示步数为0| 早上起来嘴巴发苦是什么原因| 南昌有什么好玩的| 什么不动| 榧读什么| 什么是钓鱼网站| 兔子能吃什么| 为什么叫打飞机| 1973年属什么生肖| 血压过低有什么危害| 大嘴巴是什么意思| 属鸡与什么属相最配| 胃反酸是什么原因造成的| 为什么下雨会打雷| 自闭什么意思| 口腔溃疡是什么样子| 龙的三合生肖是什么| 空前绝后是什么生肖| 人为什么要日b| 黄河水为什么是黄的| 桂林山水甲天下是什么意思| 什么洗面奶祛痘| 天天流鼻血是什么原因| hermes是什么意思| 为什么叫五七干校| buns是什么意思| 石榴什么时候开花| 子字属于五行属什么| 菜鸟是什么意思| 1998年出生属什么| 巨细胞病毒抗体阳性是什么意思| 男人什么脸型最有福气| mj是什么单位| 伯伯的老婆叫什么| 1月1日是什么节| ufc是什么意思| 什么泡水喝杀幽门螺杆菌| 厌氧菌感染用什么药| 阴道恶臭是什么原因| 阑尾炎是什么原因引起的| 户口本丢了有什么危害| 皮肤偏黄适合穿什么颜色的衣服| 乖戾是什么意思| 你喜欢吃什么用英语怎么说| 维生素d缺乏吃什么药| 尿失禁用什么药好| 呆萌是什么意思| 葡萄又什么又什么| 军训是什么时候开始的| 吃什么能增肥| 天长地久是什么意思| 脾胃不好吃什么药好| 什么是抖m| 胰腺炎吃什么药见效快| 内热吃什么药| daks是什么品牌| 一个九一个鸟念什么| 维生素吃多了有什么副作用| 夜字五行属什么| 奥沙利文为什么叫火箭| 男人长期喝什么茶最好| 男鼠配什么生肖最好| 梦见人头是什么征兆| 鸡是什么命| 四级军士长是什么级别| 什么是新陈代谢| 阴道是什么样的| 什么是命题| 脚趾头抽筋是什么原因| 品牌是什么意思| 舌头火辣辣的是什么病| 茄子和什么不能一起吃| 孤寡老人是什么意思| 阴道炎症用什么药| 平常平时叫什么日| 乳头长什么样| 胸口疼痛是什么原因| 湿疹是长什么样的| 空姐在飞机上干什么| 玉米须加什么治痛风| 心理活动是什么意思| 什么然而止| 177是什么意思| 火鸡面为什么那么辣| 吃完泡面吃什么解毒| 什么是肠镜检查| 天津卫的卫是什么意思| 梦到自己快要死了是什么意思| 五个月宝宝可以吃什么水果| dcr是什么意思| 百度
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

CREATE TRIGGER -- define a new trigger

Synopsis

百度 建设马克思主义学习型执政党,这就要求我们广大党员干部切实掌握马克思主主义理论这一看家制胜的必备工作本领,而学懂用好马克思主义哲学,就是掌握马克思主义基本理论的题中应有之义。
CREATE TRIGGER name { BEFORE | AFTER } { event [ OR ... ] }
    ON table [ FOR [ EACH ] { ROW | STATEMENT } ]
    EXECUTE PROCEDURE funcname ( arguments )

Description

CREATE TRIGGER creates a new trigger. The trigger will be associated with the specified table and will execute the specified function funcname when certain events occur.

The trigger can be specified to fire either before the operation is attempted on a row (before constraints are checked and the INSERT, UPDATE, or DELETE is attempted) or after the operation has completed (after constraints are checked and the INSERT, UPDATE, or DELETE has completed). If the trigger fires before the event, the trigger may skip the operation for the current row, or change the row being inserted (for INSERT and UPDATE operations only). If the trigger fires after the event, all changes, including the last insertion, update, or deletion, are "visible" to the trigger.

A trigger that is marked FOR EACH ROW is called once for every row that the operation modifies. For example, a DELETE that affects 10 rows will cause any ON DELETE triggers on the target relation to be called 10 separate times, once for each deleted row. In contrast, a trigger that is marked FOR EACH STATEMENT only executes once for any given operation, regardless of how many rows it modifies (in particular, an operation that modifies zero rows will still result in the execution of any applicable FOR EACH STATEMENT triggers).

If multiple triggers of the same kind are defined for the same event, they will be fired in alphabetical order by name.

SELECT does not modify any rows so you can not create SELECT triggers. Rules and views are more appropriate in such cases.

Refer to Chapter 34 for more information about triggers.

Parameters

name

The name to give the new trigger. This must be distinct from the name of any other trigger for the same table.

BEFORE
AFTER

Determines whether the function is called before or after the event.

event

One of INSERT, UPDATE, or DELETE; this specifies the event that will fire the trigger. Multiple events can be specified using OR.

table

The name (optionally schema-qualified) of the table the trigger is for.

FOR EACH ROW
FOR EACH STATEMENT

This specifies whether the trigger procedure should be fired once for every row affected by the trigger event, or just once per SQL statement. If neither is specified, FOR EACH STATEMENT is the default.

funcname

A user-supplied function that is declared as taking no arguments and returning type trigger, which is executed when the trigger fires.

arguments

An optional comma-separated list of arguments to be provided to the function when the trigger is executed. The arguments are literal string constants. Simple names and numeric constants may be written here, too, but they will all be converted to strings. Please check the description of the implementation language of the trigger function about how the trigger arguments are accessible within the function; it may be different from normal function arguments.

Notes

To create a trigger on a table, the user must have the TRIGGER privilege on the table.

In PostgreSQL versions before 7.3, it was necessary to declare trigger functions as returning the placeholder type opaque, rather than trigger. To support loading of old dump files, CREATE TRIGGER will accept a function declared as returning opaque, but it will issue a notice and change the function's declared return type to trigger.

Use DROP TRIGGER to remove a trigger.

Examples

Section 34.4 contains a complete example.

Compatibility

The CREATE TRIGGER statement in PostgreSQL implements a subset of the SQL standard. The following functionality is currently missing:

  • SQL allows triggers to fire on updates to specific columns (e.g., AFTER UPDATE OF col1, col2).

  • SQL allows you to define aliases for the "old" and "new" rows or tables for use in the definition of the triggered action (e.g., CREATE TRIGGER ... ON tablename REFERENCING OLD ROW AS somename NEW ROW AS othername ...). Since PostgreSQL allows trigger procedures to be written in any number of user-defined languages, access to the data is handled in a language-specific way.

  • PostgreSQL only allows the execution of a user-defined function for the triggered action. The standard allows the execution of a number of other SQL commands, such as CREATE TABLE as the triggered action. This limitation is not hard to work around by creating a user-defined function that executes the desired commands.

SQL specifies that multiple triggers should be fired in time-of-creation order. PostgreSQL uses name order, which was judged to be more convenient.

SQL specifies that BEFORE DELETE triggers on cascaded deletes fire after the cascaded DELETE completes. The PostgreSQL behavior is for BEFORE DELETE to always fire before the delete action, even a cascading one. This is considered more consistent. There is also unpredictable behavior when BEFORE triggers modify rows that are later to be modified by referential actions. This can lead to constraint violations or stored data that does not honor the referential constraint.

The ability to specify multiple actions for a single trigger using OR is a PostgreSQL extension of the SQL standard.

尿路感染要吃什么药 向左向右向前看是什么歌 文献是什么 什么是符号 身体水肿是什么原因引起的
胃疼吐酸水是什么原因 老是腹泻是什么原因导致的 减肥期间吃什么好 吃什么可以自然掉体毛 下午两点属于什么时辰
acd是什么意思 为什么梦不到死去的亲人 胃发炎吃什么药好得快 谷丙转氨酶是什么意思 吃什么促进卵泡发育
猫的胡须有什么作用 磷脂是什么东西 世界上最小的国家是什么 吃什么东西可以变白 鸟飞进家里是什么预兆
薏米是什么kuyehao.com 早晨起床口苦是什么原因hcv8jop2ns7r.cn 为什么会得手足口病qingzhougame.com 睾丸痛挂什么科hcv9jop7ns9r.cn 1999年五行属什么hcv7jop6ns5r.cn
龙和什么生肖最配hcv8jop0ns1r.cn 受热了有什么症状hcv8jop3ns4r.cn 得失是什么意思qingzhougame.com 先天性一个肾对人有什么影响hcv8jop4ns4r.cn 心电轴重度左偏是什么意思hcv9jop3ns4r.cn
大熊猫的尾巴是什么颜色hcv8jop0ns3r.cn 什么是中出xianpinbao.com 佟丽娅为什么离婚hcv9jop1ns6r.cn 后背痛什么原因hcv8jop7ns2r.cn 双手抱在胸前代表什么hcv8jop7ns9r.cn
想字五行属什么hcv8jop8ns9r.cn 天天都需要你爱是什么歌hcv9jop6ns0r.cn 1965年什么时候退休hcv8jop7ns3r.cn 辣椒炭疽病用什么药hcv7jop7ns1r.cn 捡和拣有什么区别hcv7jop6ns0r.cn
百度