# Open the PostgreSQL interactive terminal psql # Open it on an existing DB psql db_name ##### While in the psql terminal # Exit the psql \q # List all the DBs \l # Connect to one of the DBs \c db_name # Show the tables of a DB \dt # Check the connection info \conninfo # See the help page \? # Get help for the SQL commands \h #or \h <COMMAND_NAME>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter