File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
execute() method doesn't execute.
Joined: Jul 17, 2009
Jul 16, 2010 04:33:40
A problem which I fail to understand...
Everything above the ps.execute() is executed, everything below the ps.execute() is executed, which means no exception is generated by execute() method.
Which means that the query is successfully executed. But since my query was of insert, i could very well verify that no record was inserted.
Has anybody encountered this problem before? Is there any possibility that this is a problem, may be due to database?
Can someone help?
Joined: Apr 04, 2009
Jul 16, 2010 08:37:48
Was the insert done in a transaction and was it committed?
Also, what database are you using?
It is sorta covered in the
JavaRanch Style Guide
subject: execute() method doesn't execute.
ant targets use to execute sql queries
how to retrieve the id of a record just inserted?
java.lang.OutOfMemoryError: Java heap space while Executing the Query
JDBC-ODBC with Access : Error in Execution
Jdbc Prepared Statement execute()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014