Re: Equivalent to "use database" in postgre

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Equivalent to "use database" in postgre
Дата
Msg-id 2501.1277478044@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Equivalent to "use database" in postgre  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: Equivalent to "use database" in postgre
Список pgsql-general
Scott Marlowe <scott.marlowe@gmail.com> writes:
> On Fri, Jun 25, 2010 at 7:10 AM, javijava <welove.e.music@gmail.com> wrote:
>> How can I say "use name_database" on postgre sql?

> You have to re-connect to use a different db in pgsql.

But keep in mind that mysql databases are more nearly akin to what
postgres calls schemas.  The best way to do what you want might be
to translate your mysql DBs into schemas, and then "set search_path"
would be a good approximation to "use".

            regards, tom lane

В списке pgsql-general по дате отправления: