MySQL Forums
Forum List  »  Newbie

Re: How to get rid of Composite Primary Key
Posted by: Peter Brawley
Date: April 27, 2021 10:40AM

Your problem appears to be a normalisation failure---orders with their IDs should be in one table, order items with their own IDs and a per-row reference to their orderID should be in another (child) table. Read about normalisation eg in https://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch01.html.

Options: ReplyQuote




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.