Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : Java servlet 'inserting' or 'retrieving' into/from SQLite database Signup · Login
Author Thread
Java servlet 'inserting' or 'retrieving' into/from SQLite database
Posted in tutorial: Inserting records into the Database with Java Servlets
·  jfdutcher
User
Joined: 23 Mar 2007
Total Posts: 1

Java servlet 'inserting' or 'retrieving' into/from SQLite database

Posted: 23 Mar 2007
My question relates more to your earlier article I know.
I'm trying to understand why running a servlet that uses a SQLite JDBC driver and an 'insert' like this:
stmt.executeQuery("INSERT INTO name values('John', 'Dutcher', 0001)");
will only execute 'one' occurrence of such a statement...
If I repeat the above statement (10) times, only one insert happens (no abend though).
If I follow the one successful 'insert' with
a 'stmt.executeQuery(SELECT * from name)' it will not execute that either. If I re-compile the program...and comment the 1st 'stmt'...then the 2nd 'stmt' will execute
(but no subsequent 'stmt' will). Is this a Java language phenomenon ? or a flaw with the SQLiteJDBC interface driver ?

Cobol, Java, Rebol.....the world !
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.