Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql grant

--GRANT
--	{privilege_name}
--ON
--	{object_name}
--TO
--	{user_name |PUBLIC |role_name}
--[WITH GRANT OPTION]
  
  
  privilege_name is the access right or privilege granted to the user.
  object_name is the name of an database object like TABLE, VIEW, STORED PROC and SEQUENCE.
  user_name is the name of the user to whom an access right is being granted.
  PUBLIC is used to grant access rights to all users.
  role_name are a set of privileges grouped together.
  WITH GRANT OPTION - allows a user to grant access rights to other users.
  
  Ex.
  GRANT SELECT ON table1 TO user1;
 
PREVIOUS NEXT
Tagged: #sql #grant
ADD COMMENT
Topic
Name
1+1 =