Create or replace trigger postgres

后端 未结 5 729
情话喂你
情话喂你 2021-02-02 05:01

I want to \"create or replace\" a trigger for a postgres table. However, there is not such sql expression.

I see that I can do a \"DROP TRIGGER IF EXISTS\"

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 05:47

    No way to create or replace a trigger but can do this way

    DROP TRIGGER IF EXISTS yourtrigger_name on "yourschemaname"."yourtablename";
    

提交回复
热议问题