A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
Reguarding JDBC
bharatyadav
Greenhorn
Joined: Jul 09, 2005
Posts: 18
posted
Feb 23, 2006 06:12:00
0
Hi Everbody
I have created three tables
1) selecting the data and inserting the data in a backup table (when any updation is made)
2)updating the data into main table
3)third one for inserting data
I have written all the three queries but i do know how to implement in logic in
servlets
if(insertStatus==1) { resultset=prestmt.executeQuery(selectIndexReturnQuery); insertStatus=prestmt.executeUpdate(updateIndexReturnQuery); } else { insertStatus=prestmt.executeUpdate(saveIndexReturnQuery); }
can you please help.
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
I like...
posted
Feb 23, 2006 06:17:00
0
bharatkumaryadav,
Please don't post the same question more than once.
If you want to add something to the original post or change it's subject, just click on the
link.
[ February 23, 2006: Message edited by: Ben Souther ]
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
I agree. Here's the link:
http://aspose.com/file-tools
subject: Reguarding JDBC
Similar Threads
problem updating the values
Inserting into a table
File Operations Program Problem
JavaDb creating table error
oracle date between
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter