In MySQL, I used use database_name;
use database_name;
What's the psql equivalent?
psql
In PostgreSQL, you can use the \connect meta-command of the client tool psql:
\connect
\connect DBNAME
or in short:
\c DBNAME
How do you perform the equivalent of Oracle's DESCRIBE TABLE in PostgreSQL (using the psql command)?
I have some .sql files with thousands of INSERT statements in them and need to run these inserts on my PostgreSQL database in order to add them to a table. The files are that large that it is impossible to …
What command or short key can I use to exit the PostgreSQL command line utility psql?