Skip to content

Instantly share code, notes, and snippets.

@NCarson
Created July 24, 2018 01:21
Show Gist options
  • Save NCarson/0a722b10889d078bb8e69087f0d9727f to your computer and use it in GitHub Desktop.
Save NCarson/0a722b10889d078bb8e69087f0d9727f to your computer and use it in GitHub Desktop.
show what tables a user has access to
SELECT table_catalog, table_schema, table_name, privilege_type
FROM information_schema.table_privileges
WHERE grantee = 'MY_USER'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment