Which of the following SQL commands is used to modify the structure of a table?

2023

Which of the following SQL commands is used to modify the structure of a table?

  1. A.

    Alter

  2. B.

    Modify

  3. C.

    Update

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 1533 students.

Show answer & explanation

Correct answer: A

The SQL command used to modify the structure of a table is ALTER. This command allows you to add, delete, or modify columns, constraints, or indexes in an existing table. For example, ALTER TABLE table_name ADD column_name datatype; adds a new column. It is the standard command for structural changes in SQL.

Explore the full course: Up Lt Grade Assistant Teacher 2025