This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes Multiple Tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Multiple Tables" Watch "Multiple Tables" New topic

Multiple Tables

Sunn J

Joined: Jul 27, 2001
Posts: 4
Hi Guys
I want to insert my data into two tables through Jsp.How is that possible?
Dmitriy Pavlyuk
Ranch Hand

Joined: Mar 25, 2001
Posts: 33
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

Joined: Feb 25, 2001
Posts: 77
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

Joined: Jul 27, 2001
Posts: 4
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.
I agree. Here's the link:
subject: Multiple Tables
Similar Threads
drop down menu
Composite Foreign Key mapping
bulk insert
Good idea or not - 1 Entity Bean, multiple tables?
what is the command in oracle to show databases?