Data definition language - MySQL

Database Management > MySQL

Data definition language - MySQL ➲ Data definition language - MySQL - Quiz


  • A DDL is used to retrieve data from the database.
  • B DDL is used to define and modify the structure of the database objects.
  • C DDL is used to perform mathematical calculations on the data.
  • D DDL is used to filter and sort the data in the database.
  • A INSERT
  • B UPDATE
  • C SELECT
  • D CREATE
  • A ALTER INDEX
  • B ALTER VIEW
  • C ALTER SELECT
  • D ALTER DELETE
  • A DROP is used to delete data from a table.
  • B DROP is used to delete a database.
  • C DROP is used to delete a specific column from a table.
  • D DROP is used to delete a table or other database objects.
  • A ADD COLUMN
  • B MODIFY COLUMN
  • C CREATE COLUMN
  • D UPDATE COLUMN
  • A ALTER TABLE
  • B RENAME TABLE
  • C MODIFY TABLE
  • D UPDATE TABLE
  • A CREATE INDEX
  • B ALTER INDEX
  • C ADD INDEX
  • D MODIFY INDEX
  • A ADD CONSTRAINT
  • B CREATE CONSTRAINT
  • C MODIFY CONSTRAINT
  • D PRIMARY KEY
  • A CREATE INDEX
  • B ALTER VIEW
  • C CREATE VIEW
  • D ADD VIEW
  • A DROP COLUMN
  • B DELETE COLUMN
  • C REMOVE COLUMN
  • D ALTER COLUMN
  • A ALTER TYPE
  • B MODIFY COLUMN
  • C UPDATE TYPE
  • D CHANGE COLUMN
  • A CREATE DATABASE
  • B ALTER DATABASE
  • C ADD DATABASE
  • D MAKE DATABASE
  • A ADD CONSTRAINT
  • B CREATE CONSTRAINT
  • C FOREIGN KEY
  • D ALTER TABLE
  • A TRUNCATE TABLE deletes the table structure and its data.
  • B TRUNCATE TABLE removes the table structure but preserves its data.
  • C TRUNCATE TABLE only removes the data from a table.
  • D TRUNCATE TABLE is not a valid statement in MySQL.
  • A MODIFY COLUMN
  • B RENAME COLUMN
  • C UPDATE COLUMN
  • D CHANGE COLUMN
  • A REMOVE CONSTRAINT
  • B DROP PRIMARY KEY
  • C ALTER PRIMARY KEY
  • D DELETE PRIMARY KEY
  • A ADD UNIQUE
  • B CREATE UNIQUE
  • C UNIQUE KEY
  • D ALTER CONSTRAINT
  • A CREATE UNIQUE INDEX
  • B CREATE COMPOSITE INDEX
  • C CREATE INDEX
  • D CREATE MULTIKEY INDEX
  • A ADD CHECK
  • B CREATE CHECK
  • C CHECK CONSTRAINT
  • D ALTER CHECK
  • A DELETE VIEW
  • B DROP VIEW
  • C REMOVE VIEW
  • D ALTER VIEW