Which operation is allowed in a trigger
-
(a) Create index
-
(b) Alter database
-
(c) Insert data
-
(d) Restore Database
C
Correct answer
Explanation
Among the operations listed, only Insert data (C) is allowed inside a trigger. Triggers execute in response to DML operations (INSERT, UPDATE, DELETE) and can themselves perform data modifications. CREATE INDEX, ALTER DATABASE, and RESTORE DATABASE are DDL operations that are not permitted within a trigger because triggers execute as part of the DML transaction and these DDL operations would break transactional integrity or require exclusive locks.