Re: Getting a Database List - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Getting a Database List
Date
Msg-id 20020725223610.H12000@svana.org
Whole thread Raw
In response to Getting a Database List  ("Lee" <lee@dev.null.com>)
List pgsql-general
On Thu, Jul 25, 2002 at 10:55:04AM +0800, Lee wrote:
> I need to know the interactive SQL syntax to get a listing of databases on
> the current server.

psql -l

select * from pg_database;  (IIRC)

> Using Informix, the commands would be:
> database sysmaster;
> select name from sysdatabases;
>
> MySQL:
> show databases;
>
> MS-SQL:
> SELECT name FROM master..sysdatabases ORDER BY name
>
> Please reply by posting to this newsgroup. My email address is hashed to
> protect me from spamming.

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.

pgsql-general by date:

Previous
From: terry@greatgulfhomes.com
Date:
Subject: Re: Getting a Database List
Next
From: "Jerome Chochon"
Date:
Subject: Re: Add value in an Array