SQL question, not servlets.
Hint: take a look at INSERT INTO yyy (column1, column2) values ( a, b) and
UPDATE yyy set column1=a where column2 = b
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of V T R
Ravi Kumar
Sent: Thursday, October 05, 2000 7:48 AM
To: [EMAIL PROTECTED]
Subject:
I have a problem...
I have a database say x.mdb in access and I have written a servlet to get
a table yyy from the database and show it on a html page. The usere sees
the data and has to return his choice which is tobe stored in another
table named say zzz .
I order to retreive i had used the following syntax
==
Statement stat=dbConn.createstatement();
Resultset dfas=stat.executeQuery("SELECT .... FROM"+"yyy");
....
while(dfas.next())
{
dfas.getString(.......
......
......
}
==
Inorder to insert something into the same database but another table zzz
What Should i do
--
V.T.R..
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For Every Problem, there is a solution, which is simple, neat and wrong !
- H.L.Menchen
___________________________________________________________________________
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