SQL Server/Oracle table writable only by a trigger?
问题 I am wondering if is there a way to make a table writable only by an specific trigger in SQL Server or Oracle DB. Just to make an example: Table: "Operation" ID | Date | Account1_ID | Account2_ID | Amount Table: "Transactions" ID | Date | Account | Debt | Credit What I want to ensure is that the Transactions table only receive data from a trigger in the Operation table. Is there a way to achieve that? 回答1: Execute As allows you to create a trigger that runs as a user different to the current