The SQL Grant statement

The Grant statement is used to define access privileges. That is, it can be used to grant access to database objects such us tables, views , sequence etc..


Grant access to database object


Syntax: GRANT SELECT ON <schema>.<table-name> TO user

  • In place of SELECT we could have INSERT , UPDATE, DELETE etc.


  • In place of <schema>.<table-name> you could have a view name or a sequence etc.


  • Access privileges could be given to multiple users by comma separating them. Also could be given to a group etc.



Sources:




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Google Gemini updates: Flash 1.5, Gemma 2 and Project Astra
  • Displaying External Posts on Your al-folio Blog
  • Can Machine Learning Help Predict Heart Disease? A Data Science Exploration
  • Predicting House Prices; MLR vs RFR
  • Predicting House Prices; SVC vs Random Forest