Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8770069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:29:04+00:00 2026-06-13T17:29:04+00:00

Is it possible to grant different privileges on different tables or attributes within the

  • 0

Is it possible to grant different privileges on different tables or attributes within the one statement?

For example I want to combine:

GRANT SELECT ON tbl TO user;

and

GRANT UPDATE OF attr ON tbl TO user;

Furthermore, could I combine granting privilege on a different relation:

GRANT INSERT ON tbl2;

All in the one statement.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:29:05+00:00Added an answer on June 13, 2026 at 5:29 pm

    You can combine multiple object privileges in one GRANT, but only for the same object. For example:

    GRANT SELECT, UPDATE(column1, column2), INSERT on TBL to user;
    

    But, as you can see in the manual‘s syntax diagram, each GRANT can only operate on one object at a time.

    enter image description here

    However, you can run multiple GRANTs as a single statement if you use the CREATE SCHEMA syntax.

    CREATE SCHEMA AUTHORIZATION owner_user
    GRANT SELECT ON TBL TO user
    GRANT SELECT ON TBL2 TO user;
    

    If you’re looking to simplify your code, this won’t help. But if you have some technical requirement to use a single statement, it may work. For example, I’ve often found that combining DDL statements can significantly reduce the time it takes to run install scripts, especially over a slow network.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to grant select privilege to a particular user in Oracle. Its possible
Is it possible to grant/request evelated privileges for particular goals within a pom? Splecifically
Is it possible for a user other than root to create a database? GRANT
Is it possible to grant the datareader privileges to a SQL Server Database Role
Using SQL Server (2008), is it possible to grant a specific user full control
Is it possible in MySQL to do a GRANT to a user on a
Is it possible to grant access to jira-user with abilty to read all administration
Possible Duplicate: How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread i want
Possible Duplicate: How can I convert a list<> to a multi-dimensional array? I want
Possible Duplicate: How to do the vector of sets in C++? I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.