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 FROM user3 SELECT ON customers;
AIncorrect order of keywords in REVOKE statement
BUser name should be quoted
CREVOKE cannot remove SELECT permission
DTable name is invalid
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct REVOKE syntax

    The correct order is REVOKE permission ON table FROM user;
  2. Step 2: Compare with given command

    The command has FROM user before permission and table, which is incorrect syntax.
  3. Final Answer:

    Incorrect order of keywords in REVOKE statement -> Option A
  4. Quick Check:

    REVOKE syntax = REVOKE permission ON table FROM user [OK]
Quick Trick: REVOKE syntax order: permission ON table FROM user [OK]
Common Mistakes:
  • Swapping FROM and permission
  • Misplacing ON keyword
  • Incorrect user or table names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes