Allow read access to a table.
Section: Security, Grants, and Default Privileges
Grant table select
sql
sql
GRANT SELECT ON TABLE public.users TO readonly;Explanation
See summary for usage details.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Security, Grants, and Default Privileges