Question:
how to insert data into multiple table in sql?
2009-08-31 18:01:00 UTC
i want to insert data into multiple table by single insert statement.can i do so?plz help me.........
Six answers:
2009-09-01 01:48:47 UTC
First you have to join those two tables by using foreign key..



after that insert all your data's in that first table that should be updated in other table also with that foreign key(we already assigned)
asa
2009-09-01 01:57:33 UTC
Make the column which u have to insert as primary and create a table which acts as a secondary which is linked by foreign key and insert into ur values in the first table thus u can update the second table also:-)
?
2009-09-02 10:33:00 UTC
you need to join the tables for updating them together and inserting data at once.
sagar
2009-09-01 05:31:33 UTC
yes it can be but let me see . i will tell u tomorrow it's using oracle 9i multitable cocept
oscar
2014-12-11 00:25:56 UTC
sophisticated issue. look into in google. that will might help!
Serge M
2009-09-01 13:37:14 UTC
You can't do it.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...