Received: from mx99.openu.ac.il (arbel.openu.ac.il [147.233.32.4]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA95608 for ; Sun, 15 Aug 1999 11:16:19 -0400 (EDT) (envelope-from herouth@oumail.openu.ac.il) Received: from talmon.openu.ac.il (talmon.openu.ac.il [147.233.32.11]) by mx99.openu.ac.il (Postfix) with ESMTP for id 1D9D74B675; Sun, 15 Aug 1999 18:16:17 +0300 (IDT) Received: from [147.233.159.109] (mac-herouth.pc.openu.ac.il) by talmon.openu.ac.il (Netscape Messaging Server 3.54) with ESMTP id AAA6D7B; Sun, 15 Aug 1999 18:19:53 +0300 X-Sender: herouth@shaked.cc.openu.ac.il Message-Id: In-Reply-To: <37B3564B.C2F7CD0@phalanx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 15 Aug 1999 18:17:37 +0300 To: Mark Dzmura , "pgsql-interfaces@postgreSQL.org" From: Herouth Maoz Subject: Re: [INTERFACES] JDBC query... At 02:18 +0300 on 13/08/1999, Mark Dzmura wrote: >1. Is there an object of higher "scope" than the Connection object, which >is bound to a specific database?? A connection object is bound to one connection to a single database. If you want to create or delete databases, you have to connect to the PostgreSQL database named 'template1'. You will typically have a separate connection object for this. >2. Is there a Database object, which provides methods to create, destroy, >and modify the schemas of tables ?? Or can I do SQL "CREATE TABLE" and >"DROP TABLE" operations using some version of Statement which doesn't >return a ResultSet ?? Yes, you can use statements such as CREATE TABLE, DROP TABLE, and any other DDL statement, by using the executeUpdate() method of Statement or PreparedStatement. Its name may suggest that it is only for UPDATE statements, but that's not true. It's for any query which is not expected to return a result set. Herouth -- Herouth Maoz, Internet developer. Open University of Israel - Telem project http://telem.openu.ac.il/~herutma