Is there a way to disable updates/deletes but still allow triggers to perform them?
问题 Basically, I want to be able to use the REVOKE command to disable UPDATE and DELETE , but I still want the triggers on a table to update my rows. My triggers perform on newly inserted rows, and update a specific field. So I still want this behaviour, but wouldn't they be disabled with REVOKE or with a RULE . (I saw an SO post) Is there a way to keep using the UPDATE / INSERT commands in TRIGGERS but disabling the rest? 回答1: Yes, this is possible. Triggers are run with the privileges of the