Re: How to list databases with SQL statement?

Поиск
Список
Период
Сортировка
От Quinton Delpeche
Тема Re: How to list databases with SQL statement?
Дата
Msg-id 200411230652.45353.quintond@vippayroll.co.za
обсуждение исходный текст
Ответ на How to list databases with SQL statement?  (Marian D Marinov <hackman@hydra.azilian.net>)
Список pgsql-general
On Saturday 20 November 2004 02:39, Marian D Marinov wrote:
> Hello,
> Is there a way to list all databases which belong to the current user with
> an SQL query?

I am not sure about a SQL Query.

But if you login to the database using the command line psql interface and run

\l

it will give you output similar to this:

intsys=> \l
        List of databases
   Name    |  Owner   | Encoding
-----------+----------+-----------
 intsys    | intsys   | SQL_ASCII
 template0 | postgres | SQL_ASCII
 template1 | postgres | SQL_ASCII
(3 rows)

intsys=>

Not sure if this will help you.

> Regards M.Marinov

Q
--
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:    +27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Anarchy may not be the best form of government, but it's better than no
government at all.

Вложения

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

Предыдущее
От: Bill Harris
Дата:
Сообщение: Re: How to make a good documentation of a database ?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: How to list databases with SQL statement?