I want to write a trigger so that rows deleted from the table are logically-deleted, rather than being actually removed. That is, such rows are marked as being deleted, rather than actually being deleted from the table.
in sql server I know that we can use INSTEAD OF DELETE trigger but I don`t know how can I do the same action in PostgreSQL.
It needed to write a function that update the rows which asked for delete.
please help me with the trigger and related function which is needed .
in sql server I know that we can use INSTEAD OF DELETE trigger but I don`t know how can I do the same action in PostgreSQL.
It needed to write a function that update the rows which asked for delete.
please help me with the trigger and related function which is needed .
Comment