Difference between revisions of "GRANT"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 5: Line 5:
 
  GRANT your_defined_role TO your_username;
 
  GRANT your_defined_role TO your_username;
 
  GRANT ROLE
 
  GRANT ROLE
 +
 +
SELECT * FROM your_table_name;
 +
[[ERROR: permission denied for table]] your_table_name
  
 
* List roles: <code>[[\du]]</code>
 
* List roles: <code>[[\du]]</code>

Revision as of 09:48, 29 October 2021

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

Related terms

See also

Advertising: