Java Transaction

From: Anil Amarakoon <anil(at)server(dot)awcoldstream(dot)com>
To: "pgsql-interfaces(at)postgreSQL(dot)org" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Java Transaction
Date: 1998-05-07 04:49:38
Message-ID: 35513D62.FFD7979@awcoldstream.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi All!

How do I do transaction in Java
when I tried
resultset=statement.executeQuery("begin transaction);
resultset.close();
resultset = statement .executeQuery("select foo from bar where
myid=1000");

it does not return any results.

or do I have to do with
connection.setAutoCommit(false);
bla bla...
myconn.commit();

any information in this regard is highly appreciated.

Tks a lot

Anil

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter T Mount 1998-05-07 05:51:25 Re: [INTERFACES] Java Transaction
Previous Message Doug Lo 1998-05-07 03:26:12 Re: [INTERFACES] Re: pgaccess,... OK What are the steps ????