Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Tables

 
Sunn J
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys
I want to insert my data into two tables through Jsp.How is that possible?
Thanks
Sunn
 
Dmitriy Pavlyuk
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be i don't quite understand your question, but it's not a problem.
You can execute any SQL query from JSP, and insert data in some table.
If you ask about html tables then it's doesn't different from any another markup.
 
Sunetra Saha
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's right. The sql update should be exactly the same even if you hava 20 tables to insert the data to. Or is it that we are misreading your problem?
 
Sunn J
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank Dmitri and Sunetra
My situation is that I have to insert Data in two tables situated in the same database(Access). So just changing the name of the table in sql query will do or something else is required.
Thanks
Sunn
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic