Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to insert data into multiple tables?

 
prasant sahoo
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to MySql & Struts.My recent project needs data to be inserted into multiple tables...please help me....
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prasant,
Welcome to JavaRanch!

In order to insert data into multiple tables, you need to write multiple statements which each insert data to one table. Check for dependencies between the tables so the lower level tables get loaded first.
 
prasant sahoo
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic