Re: switching databases

From: Ewald Geschwinde <webmaster(at)geschwinde(dot)net>
To: "Adler, Stephen" <adler(at)bnl(dot)gov>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: switching databases
Date: 2002-11-30 17:02:06
Message-ID: 3DE8EF0E.8000409@geschwinde.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

\c [DATABASE]

\? for help

Adler, Stephen schrieb:

>Is there a way to switch databases within psql like there is
>in mysql using the 'use' command?
>
>I have two databases, one named test, the other name data, if
>I do 'psql test' I'm connected to the test database, to connect
>to the data database, I have to quite psql then run the command
>'psql data'. It would be nice not to have to quit out of psql.
>
>Thanks. Steve.
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/users-lounge/docs/faq.html
>
>
>
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Adler, Stephen 2002-11-30 17:05:31 switching databases
Previous Message Tom Lane 2002-11-30 16:34:26 Re: views and rules