Bird
0
0

Which of the following is the correct syntax to grant UPDATE permission on a table named products to user john?

easy📝 Syntax Q3 of 15
PostgreSQL - Roles and Security
Which of the following is the correct syntax to grant UPDATE permission on a table named products to user john?
AGRANT UPDATE products TO john;
BGRANT UPDATE ON products TO john;
CGRANT ON UPDATE products TO john;
DGRANT UPDATE TO john ON products;
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct GRANT syntax

    The correct syntax is GRANT permission_type ON table_name TO user_name; where permission_type is UPDATE here.
  2. Step 2: Match the syntax to the options

    GRANT UPDATE ON products TO john; matches the correct syntax: GRANT UPDATE ON products TO john;
  3. Final Answer:

    GRANT UPDATE ON products TO john; -> Option B
  4. Quick Check:

    GRANT permission ON table TO user; = correct syntax [OK]
Quick Trick: Use GRANT permission ON table TO user; syntax [OK]
Common Mistakes:
  • Omitting ON keyword
  • Placing TO before ON
  • Incorrect order of keywords

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PostgreSQL Quizzes