conn.ttsbegin(); sqlCommand = "Insert into T ... "; statement.executeUpdate(sqlCommand); i = statement.getLastError(); conn.ttscommit();