Question:
How can I Insert Data into Foreign Key Table using sql Query?
Anusha
2012-11-05 21:37:59 UTC
I have two tables in database 'Reservation' and 'Guest' contain one to many relationship.I want to insert data into Guest Table where Particular Reservation No in Reservation Table..i am using sql and jsp for doing this.plzzzzzzzzz help me urgent
Five answers:
Prashant
2012-11-05 23:03:42 UTC
Sample SQL Code to manage one-to-many data in your SQL

http://blog.pengoworks.com/index.cfm/2011/5/18/Easily-managing-onetomany-data-in-your-SQL-database-with-using-multiple-INSERT-INTO-statements
2016-10-29 05:51:57 UTC
Sql Insert Foreign Key
Siju
2012-11-07 02:01:59 UTC
Hi,



Refer to the below link



http://stackoverflow.com/questions/1997998/insert-data-into-tables-linked-by-foreign-key



http://aadseducation.com/
Prashant
2014-03-30 10:36:27 UTC
INSERT INTO Lib2(Book_id) SELECT Book_id FROM Lib1
Nana
2016-01-23 09:00:30 UTC
mn


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