Skip site navigation (1) Skip section navigation (2)

Re: can i create a database programmatically?

From: Steven Klassen <sklassen(at)commandprompt(dot)com>
To: Zhenchang Xing <xing(at)cs(dot)ualberta(dot)ca>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: can i create a database programmatically?
Date: 2004-10-18 21:54:24
Message-ID: 20041018215424.GA17362@commandprompt.com (view raw or flat)
Thread:
Lists: pgsql-novice
* Zhenchang Xing <xing(at)cs(dot)ualberta(dot)ca> [2004-10-18 15:31:04 -0600]:

> Can I connect to built-in template1 database, and call, for example,
> execute("CREATE DATABASE newdb ...") from within JDBC?

It's a query like any other - that should work fine.

-- 
Steven Klassen - Lead Programmer
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Replication & Support Services, (503) 667-4564

In response to

pgsql-novice by date

Next:From: Martin FosterDate: 2004-10-19 02:43:31
Subject: Administrative lockout
Previous:From: Zhenchang XingDate: 2004-10-18 21:31:04
Subject: can i create a database programmatically?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group