How do I select a specific database in PostgreSQL?

How do I select a specific database in PostgreSQL?
Answer
5 Answers. When you get a connection to PostgreSQL it is always to a particular database. To access a different database, you must get a new connection. Using c in psql closes the old connection and acquires a new one, using the specified database and/or credentials.
 

Tìm kiếm

Back
Top