Re: test the existence of a database

From: "Steve Brett" <steve(dot)brett(at)e-mis(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: test the existence of a database
Date: 2002-02-01 13:29:36
Message-ID: a3e5hj$1mgv$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

psql -l

will list the databases.

psql <database name> will give to access to the command line sql environment
and once you're in there /dt will list the tables ...

Steve

"D'laila Pereira" <dpereira(at)students(dot)uiuc(dot)edu> wrote in message
news:Pine(dot)GSO(dot)4(dot)31(dot)0201311451080(dot)6396-100000(at)ux11(dot)cso(dot)uiuc(dot)edu(dot)(dot)(dot)
>
> After a database is created in postgresql using the createdb command,
> and populate it with some taqbles, how do we test the existence of the
> database and the tables within it?
>
> thanks
> d'laila
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Brett 2002-02-01 13:32:36 Re: Index Management
Previous Message Tomas Eriksson 2002-02-01 12:59:08 Compare with CHAR