Re: mysql command equivalents?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: mysql command equivalents?
Дата
Msg-id 20233.1255470624@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: mysql command equivalents?  (Richard Broersma <richard.broersma@gmail.com>)
Список pgsql-novice
Richard Broersma <richard.broersma@gmail.com> writes:
> On Tue, Oct 13, 2009 at 2:20 PM, Hassan Schroeder
> <hassan.schroeder@gmail.com> wrote:
>> Is there a nice single table somewhere listing MySQL equivalents,
>> e.g. "USE database" == ? My google-fu is failing me. (And even the
>> docs don't seem to have anything for that particular example.)

> PostgreSQL doesn't have the functionality to change a connection from
> one database to another with a simple command.   The client app has to
> drop the connection and open a new connection to the other database.

Note that practically all clients do offer that functionality easily
--- for instance, in psql it's "\c databasename".  But without knowing
what client code you're using it's hard to offer advice.

Also, as Richard noted, mysql's "databases" are really closer to pgsql's
"schemas".

            regards, tom lane

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

Предыдущее
От: Richard Broersma
Дата:
Сообщение: Re: mysql command equivalents?
Следующее
От: Thom Brown
Дата:
Сообщение: Re: mysql command equivalents?