I have this situation I'm doing a update statement on sql script in postgres, when I found matching record I want to update content and also save to other table for example id_user for who's I did update is it possible with use plpgsql. Can you give me any tips what terms I will should search on google ?
ex.
update User set Status "Active" where any_condition when success insert to UserHistoryTable