Difference between revisions of "GRANT SELECT"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
  
 
=== [https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT-examples.html Amazon RedShift] ===
 
=== [https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT-examples.html Amazon RedShift] ===
[[GRANT SELECT ON ALL TABLES IN SCHEMA]] your_schema TO your_user;
+
* <code>[[GRANT SELECT ON ALL TABLES IN SCHEMA]] your_schema TO your_user;</code>
[[GRANT SELECT ON ALL TABLES IN SCHEMA]] your_schema [[TO GROUP]] your_group;
+
* <code>[[GRANT SELECT ON ALL TABLES IN SCHEMA]] your_schema [[TO GROUP]] your_group;</code>
  
[[GRANT SELECT ON]] mytable TO xxx;
+
* <code>[[GRANT SELECT ON]] mytable TO xxx;</code>
  
 
  GRANT SELECT ON mytable TO xxx;<ref>https://stackoverflow.com/questions/760210/how-do-you-create-a-read-only-user-in-postgresql</ref>
 
  GRANT SELECT ON mytable TO xxx;<ref>https://stackoverflow.com/questions/760210/how-do-you-create-a-read-only-user-in-postgresql</ref>

Revision as of 10:18, 16 December 2022

Advertising: