Re: Use Driver to Create database?

From: Roland Walter <roland(dot)walter(dot)rwa(at)gmx(dot)net>
To: Charlie Kelly <Charlie(at)CharlieKelly(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Use Driver to Create database?
Date: 2006-11-19 21:46:37
Message-ID: 4560D0BD.5080803@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roland Walter wrote:
> Charlie Kelly wrote:
>> Is it possible to use the driver to create a new database (inside a java
>> program),
>> or is it necessary to first create the database using the createdb utility?
>
>> If it is possible to use the driver, what is the correct syntax?
>
>
> There is a SQL-command for that, look here:
>
>
> http://www.postgresql.org/docs/8.1/interactive/sql-createdatabase.html
>
> First connect to the postgres or template1 schema of the cluster, that

Oops, the word schema is wrong, postgres and template1 are default
databases.

- --
Dipl.-Phys. Roland Walter
mailto: roland (dot) walter (dot) rwa (at) gmx (dot) net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFFYNC9xoOEAkary1ERApjXAJ4tGByZErjSwabxWlH5P+dq95cpNQCdFhP4
S/b2XDCr+I2MWKH5kxEcYGw=
=Ddbc
-----END PGP SIGNATURE-----

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Heikki Linnakangas 2006-11-19 22:04:10 Re: Use Driver to Create database?
Previous Message Roland Walter 2006-11-19 21:42:07 Re: Use Driver to Create database?