Bird
0
0

Why does this command cause an error?

medium📝 Debug Q7 of 15
PostgreSQL - Roles and Security
Why does this command cause an error?
REVOKE ALL PRIVILEGES ON TABLE users FROM;
AREVOKE cannot be used on tables
BThe user or role to revoke from is missing
CTABLE keyword is invalid here
DALL PRIVILEGES is not allowed in REVOKE
Step-by-Step Solution
Solution:
  1. Step 1: Analyze REVOKE syntax

    REVOKE requires specifying the user or role after FROM.
  2. Step 2: Identify missing part in command

    The command ends with FROM but does not name who to revoke from.
  3. Final Answer:

    The user or role to revoke from is missing -> Option B
  4. Quick Check:

    REVOKE needs user/role after FROM [OK]
Quick Trick: Always specify user after FROM in REVOKE [OK]
Common Mistakes:
  • Leaving out user/role
  • Misusing ALL PRIVILEGES
  • Removing TABLE keyword incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes