Re: Equivalent to "use database" in postgre

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: javijava <welove(dot)e(dot)music(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Equivalent to "use database" in postgre
Date: 2010-06-25 14:48:22
Message-ID: AANLkTik-c_HDvZvw2Z3GvXeVN4EqdADDiCkUTvTB0aRI@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 25, 2010 at 7:10 AM, javijava <welove(dot)e(dot)music(at)gmail(dot)com> wrote:
>
> Hi,
>
> i'm newby in postgre sql world.
>
> i need to know how to do a simple script  that create a database,the y
> select it (in other languajes using USE) and after create tables with this
> database.
>
>
> How can I say "use name_database" on postgre sql?

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-06-25 14:56:23 Re: Need Some Recent Information on the Differences between Postgres and MySql
Previous Message Tom Lane 2010-06-25 14:32:05 Re: Need Some Recent Information on the Differences between Postgres and MySql