pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roland Walter <roland.walter.rwa@gmx.net>
To: Charlie Kelly <Charlie@CharlieKelly.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Use Driver to Create database?
Date: Sun, 19 Nov 2006 22:46:37 +0100
Message-ID: <4560D0BD.5080803@gmx.net> (raw)
In-Reply-To: <4560CFAF.7020105@gmx.net>
References: <1163715629.8932.22.camel@mokki.local>
	<4560B46C.50109@CharlieKelly.com>
	<4560CFAF.7020105@gmx.net>

-----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-----



view thread (6+ messages)  latest in thread

Message-ID: <4560D0BD.5080803@gmx.net>
Permalink:  ../4560D0BD.5080803@gmx.net/
Also on:    postgresql.org/message-id/4560D0BD.5080803@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: roland.walter.rwa@gmx.net, Charlie@CharlieKelly.com
  Subject: Re: Use Driver to Create database?
  In-Reply-To: <4560D0BD.5080803@gmx.net>
  References: <1163715629.8932.22.camel@mokki.local> <4560B46C.50109@CharlieKelly.com> <4560CFAF.7020105@gmx.net> <4560D0BD.5080803@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox