mindapolis Posted January 27, 2012 Share Posted January 27, 2012 I just want to make sure I'm understanding the following code correctly. The primary key, order_number, from the orders table is now the foreign key in the customers table, correct? ALTER TABLE `customers` ADD FOREIGN KEY ( `customers_id` ) REFERENCES `auntievics`.`orders` ( `order_number` ); Quote Link to comment Share on other sites More sharing options...
fenway Posted January 27, 2012 Share Posted January 27, 2012 Yes, but I don't see how that's an "explanation". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.