Stored functions and triggers - MySQL

Database Management > MySQL

Stored functions and triggers - MySQL ➲ Stored functions and triggers - MySQL - Quiz


  • A A reusable program that returns a single value
  • B A type of trigger that executes SQL statements automatically
  • C A temporary table used for data storage
  • D A mechanism for defining custom data types in the database
  • A FUNCTION
  • B PROCEDURE
  • C TRIGGER
  • D TABLE
  • A They can modify data in the database
  • B They can only return a single value
  • C They can be called from triggers only
  • D They are executed automatically when a specific event occurs
  • A EXECUTE
  • B SELECT
  • C CALL
  • D RETURN
  • A DROP PROCEDURE
  • B DROP FUNCTION
  • C DROP TRIGGER
  • D DROP DATABASE
  • A Stored function
  • B Stored procedure
  • C Trigger
  • D View
  • A They can return result sets
  • B They are called explicitly by the application
  • C They can be defined on temporary tables
  • D They are executed before a specific event occurs
  • A BEFORE
  • B AFTER
  • C WHEN
  • D ON
  • A Updating multiple records in a table
  • B Inserting data into multiple tables simultaneously
  • C Retrieving the total count of records in a table
  • D Executing complex SQL queries
  • A They can return result sets
  • B They can be called explicitly
  • C They can modify data in the database
  • D They are invoked by stored procedures only
  • A CREATE PROCEDURE
  • B CREATE TRIGGER
  • C CREATE FUNCTION
  • D CREATE TABLE