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

Prepare for success in your database systems exam with our comprehensive study tools. Use flashcards and multiple choice questions, with detailed hints and explanations. Ace your exam with confidence!

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 Examzify

You can unsubscribe at any time. Read our privacy policy