Bird
0
0

Consider this command:

medium📝 Debug Q14 of 15
PostgreSQL - Roles and Security
Consider this command:
GRANT UPDATE ON customers TO ;

What is the error in this command?
AMissing user name after TO keyword.
BUPDATE is not a valid permission.
CTable name is missing after ON keyword.
DGRANT cannot be used for UPDATE permission.
Step-by-Step Solution
Solution:
  1. Step 1: Check syntax completeness

    The command ends with TO but does not specify a user or role name.
  2. Step 2: Validate permission and table name

    UPDATE is a valid permission and customers is the table name, so those parts are correct.
  3. Final Answer:

    Missing user name after TO keyword. -> Option A
  4. Quick Check:

    GRANT requires user after TO [OK]
Quick Trick: Always specify user after TO in GRANT [OK]
Common Mistakes:
  • Leaving user name blank after TO
  • Confusing permission names
  • Omitting table name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes