MySQL Forums
Forum List  »  Newbie

Re: How to insert multiple records against single order id/ primary key
Posted by: Peter Brawley
Date: June 04, 2021 09:57AM

You need an order_items table with its own PK in which each row carries an order_id FK reference to the orders table and an item_id FK reference to the inventory table.

See examples in https://www.artfulsoftware.com/dbdesignbasics.html

Options: ReplyQuote


Subject
Written By
Posted
Re: How to insert multiple records against single order id/ primary key
June 04, 2021 09:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.