How can I get the table name in a PostgreSQL trigger function?

前端 未结 2 1721
梦谈多话
梦谈多话 2021-02-12 09:47

I have a trigger function:

CREATE OR REPLACE FUNCTION \"trigger_deleteUsers\"()
RETURNS trigger AS
$BODY$
BEGIN
    INSERT INTO \"DeletedEntities\" (\"uuidKey\",         


        
2条回答
  •  既然无缘
    2021-02-12 10:08

    TG_TABLE_NAME. See the docs for other trigger arguments: http://www.postgresql.org/docs/current/static/plpgsql-trigger.html

提交回复
热议问题