Difficulty: Easy
Correct Answer: ALTER TABLE
Explanation:
Introduction / Context:
Renaming a table is a DDL operation. While specific syntax varies slightly, standards-aligned and widely supported approaches use the ALTER TABLE command with a RENAME clause (for example, ALTER TABLE old_name RENAME TO new_name).
Given Data / Assumptions:
Concept / Approach:
The generic approach is ALTER TABLE with a RENAME sub-clause. Different vendors support variants (e.g., Oracle: RENAME old TO new or ALTER TABLE ... RENAME TO; PostgreSQL: ALTER TABLE ... RENAME TO ...; MySQL: RENAME TABLE ... also exists). The safest standards-oriented answer is ALTER TABLE as the top-level verb for renaming.
Step-by-Step Solution:
Verification / Alternative check:
Vendor documentation confirms ALTER TABLE as the canonical DDL verb for renaming with RENAME TO sub-clause in standards-compliant engines.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
ALTER TABLE
Discussion & Comments