Difference between revisions of "GRANT"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
 
  SELECT * FROM your_table_name;
 
  SELECT * FROM your_table_name;
 
  [[ERROR: permission denied for table]] your_table_name
 
  [[ERROR: permission denied for table]] your_table_name
 +
 +
[[GRANT SELECT ON mytable TO xxx]]
  
 
* List roles: <code>[[\du]]</code>
 
* List roles: <code>[[\du]]</code>

Revision as of 09:51, 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

Advertising: