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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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