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` ); Link to comment https://forums.phpfreaks.com/topic/255896-mysql-statement-explained/ 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". Link to comment https://forums.phpfreaks.com/topic/255896-mysql-statement-explained/#findComment-1311787 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.