Difficulty: Easy
Correct Answer: ALTER TABLE
Explanation:
Introduction / Context:
Database schemas evolve. Administrators and developers often need to add columns, change data types, rename objects, or adjust constraints. Knowing the correct DDL command for in-place schema evolution is essential for safe, controlled changes in production environments.
Given Data / Assumptions:
Concept / Approach:
The ALTER TABLE statement is the canonical DDL command for changing a table’s definition. Variants such as DEFINE TABLE or MODIFY TABLE are not standard SQL commands (though some DBMSs may offer vendor-specific syntax). For portability and correctness, ALTER TABLE is the correct choice.
Step-by-Step Solution:
Verification / Alternative check:
DBMS documentation (SQL standard and vendor manuals) shows ALTER TABLE as the mechanism for structural changes post-creation.
Why Other Options Are Wrong:
Common Pitfalls:
Assuming vendor dialect keywords are portable; always verify against SQL standard or your specific DBMS.
Final Answer:
ALTER TABLE
Discussion & Comments