This is off topic. But anyway:
Set auto commit off on your connection object, and then use the commit or
rollback function.
conn -> java.sql.Connection
conn.setAutoCommit(autoCommitVal);
conn.commit();
conn.rollback();
-Original Message-
From: suresh chaluvadi [mailto:[EMAI
suresh chaluvadi wrote:
>
> I'm inserting some rows in a table using a
> servlet program. After inserting I want to
> commit the insert.
>
It just depends. Sometimes you need a commit, sometimes
you don't. But servlet-interest isn't the place to discuss
basic JDBC programming, instead try jdbc-