Skip to content

Instantly share code, notes, and snippets.

@data4sci
Created August 18, 2022 11:34
Show Gist options
  • Select an option

  • Save data4sci/6ee78a41247df52a39dbc145a4c9f31e to your computer and use it in GitHub Desktop.

Select an option

Save data4sci/6ee78a41247df52a39dbc145a4c9f31e to your computer and use it in GitHub Desktop.
get table names from postgres database
SELECT table_name
FROM information_schema.tables
WHERE table_schema='public'
AND table_type='BASE TABLE';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment