Difference between revisions of "GRANT"

From wikieduonline
Jump to navigation Jump to search
Line 15: Line 15:
  
 
== Related terms ==
 
== Related terms ==
* <code>[[\ddp]]</code>
+
* <code>[[\ddp]]</code> <ref>https://dba.stackexchange.com/a/184339</ref>
 
* <code>[[CREATE ROLE]]</code>
 
* <code>[[CREATE ROLE]]</code>
 
* {{TOC operation databases}}
 
* {{TOC operation databases}}

Revision as of 10:04, 29 October 2021

Example:

GRANT your_defined_role TO your_username;
GRANT ROLE
SELECT * FROM your_table_name;
ERROR: permission denied for table your_table_name
GRANT SELECT ON mytable TO xxx
  • List roles: \du

Related terms

See also

  • https://dba.stackexchange.com/a/184339
  • Advertising: