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

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 (view raw or flat)
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

pgsql-interfaces by date

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

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