Last active
February 12, 2020 16:04
-
-
Save awsiv/9c3cbeb41fb358394f986c637d07fcae to your computer and use it in GitHub Desktop.
SQL queries
This file contains 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
--- select indexes | |
SELECT tablename, indexname, indexdef FROM pg_indexes WHERE schemaname = 'public' ORDER BY tablename, indexname; | |
--- list functions | |
\df public.* | |
--- list lastvalue | |
SELECT MAX(id) FROM <table name>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment