Created
June 12, 2020 12:53
-
-
Save fabiolimace/0f10726b8d0643670590709b009c6974 to your computer and use it in GitHub Desktop.
Find database objects on PostgreSQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Find table | |
SELECT table_schema, table_name | |
FROM information_schema.tables | |
WHERE table_type='BASE TABLE' | |
AND table_name ILIKE '%tablename%'; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment