PostgesSQL
Online Postgest testing
Cheatsheet
https://tomcam.github.io/postgres/#opening-a-connection-locally
https://www.geeksforgeeks.org/postgresql-psql-commands/
Basic commands
psql -d database -U user -W = connect to database user specific user
psql -V = version
\? = help
\conninfo = connection information
\l = list databases
\dt = list tables
\du = display users
\s = display command history
\i = execute file
\H = switch to HTML
\q = quit
Dockers
docker exec -it mypostgres psql -h localhost -U postgres
No comments:
Post a Comment