forked from openGauss-Ecosystem/openGauss-trigger
Edit by browser
This commit is contained in:
parent
0cad7b410d
commit
f7a9a3b2e2
|
@ -2,8 +2,15 @@
|
|||
CREATE OR REPLACE FUNCTION TRI_INSERT_FUNC() RETURNS TRIGGER AS
|
||||
$$
|
||||
DECLARE
|
||||
|
||||
--此处用declare语句声明你所需要的变量
|
||||
BEGIN
|
||||
--此处插入触发器业务
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--触发器业务结束
|
||||
return new;--返回插入的新元组
|
||||
END;
|
||||
$$ LANGUAGE PLPGSQL;
|
||||
|
|
Loading…
Reference in New Issue