Bird
0
0

What is wrong with this command?

medium📝 Debug Q7 of 15
PostgreSQL - Roles and Security
What is wrong with this command?
REVOKE UPDATE ON FROM orders TO grace;
AUser name should come before table name
BUPDATE permission cannot be revoked
CTable name is missing
DIncorrect order of FROM and TO keywords
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct REVOKE syntax

    REVOKE permission ON table FROM user;
  2. Step 2: Identify error in command

    The command uses FROM before table and TO before user, which is wrong.
  3. Final Answer:

    Incorrect order of FROM and TO keywords -> Option D
  4. Quick Check:

    REVOKE syntax = REVOKE permission ON table FROM user [OK]
Quick Trick: REVOKE uses FROM before user, not TO [OK]
Common Mistakes:
  • Swapping FROM and TO keywords
  • Thinking UPDATE can't be revoked
  • Missing table name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes