Which of the following operations is explicitly listed as being supported by ALTER TABLE?

Study for the Database Systems Test. Prepare with flashcards and multiple choice questions, each with hints and explanations. Get ready for success!

Multiple Choice

Which of the following operations is explicitly listed as being supported by ALTER TABLE?

Explanation:
ALTER TABLE is the statement used to change the structure of an existing table. It explicitly supports schema changes such as renaming a column, which is done with a command like ALTER TABLE table_name RENAME COLUMN old_name TO new_name. This directly changes the column’s identifier without touching the data. The other options involve objects or operations not typically performed with ALTER TABLE: creating a stored procedure is defining a separate programmable object, dropping a trigger is removing a separate database object, and adding an index is usually handled by a dedicated index-creation action (though some systems offer an ALTER TABLE variant for indexing, the canonical and explicit ALTER TABLE capability here is renaming a column).

ALTER TABLE is the statement used to change the structure of an existing table. It explicitly supports schema changes such as renaming a column, which is done with a command like ALTER TABLE table_name RENAME COLUMN old_name TO new_name. This directly changes the column’s identifier without touching the data.

The other options involve objects or operations not typically performed with ALTER TABLE: creating a stored procedure is defining a separate programmable object, dropping a trigger is removing a separate database object, and adding an index is usually handled by a dedicated index-creation action (though some systems offer an ALTER TABLE variant for indexing, the canonical and explicit ALTER TABLE capability here is renaming a column).

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy