I was tried this, but I was a problem, I have tables with triggers and if I use PreparedStatement.executeUpdate()  throws a exeptions. for this I decided using execute()

Hyne, David wrote:
RE: Using execute() method

Use PreparedStatement.executeUpdate() instead, it returns int value of how many records inserted/updated/deleted.



-----Original Message-----
From: amorales [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 02, 2003 5:53 PM
To: [EMAIL PROTECTED]
Subject: Using execute() method


Hi all,

I am doing a program that insert or update information in db. my problem
is I need to know if the information was inserted or updated in db, I am
using a preparedstatement with execute method.

could Any body tell me how I can verify it ?

Thanks.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

------------------------------------------------------------------------------

This email is confidential and may be legally privileged.

It is intended solely for the addressee. Access to this email by anyone else, unless expressly approved by the sender or an authorized addressee, is unauthorized.

If you are not the intended recipient, any disclosure, copying, distribution or any action omitted or taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender, delete this e-mail and destroy all copies.

==============================================================================

___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to