Bird
0
0

Which of the following is the correct syntax to run a basic VACUUM on a table named employees?

easy📝 Syntax Q3 of 15
PostgreSQL - Transactions and Concurrency
Which of the following is the correct syntax to run a basic VACUUM on a table named employees?
AVACUUM employees;
BVACUUM TABLE employees;
CRUN VACUUM ON employees;
DEXECUTE VACUUM employees;
Step-by-Step Solution
Solution:
  1. Step 1: Recall the basic VACUUM syntax

    The correct syntax is simply VACUUM followed by the table name.
  2. Step 2: Eliminate incorrect syntax forms

    Keywords like TABLE, RUN, or EXECUTE are not part of VACUUM syntax.
  3. Final Answer:

    VACUUM employees; -> Option A
  4. Quick Check:

    Basic VACUUM syntax = VACUUM table_name; [OK]
Quick Trick: Use VACUUM table_name; to clean a table [OK]
Common Mistakes:
  • Adding TABLE keyword after VACUUM
  • Using RUN or EXECUTE commands incorrectly
  • Omitting the semicolon at the end

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes