MySQL Forums
Forum List  »  PHP

Re: How to populate one table with values from another table
Posted by: Peter Brawley
Date: June 27, 2013 11:14AM

>pord_name, prod_brand, prod_photo, prod_desc
>and another table with the following columns
>prod_name, prod_brand, prod_photo, prod_desc, cat, subcat, prod_price, prod_w_c

Needless duplication. Minimise redundancy!

login(
  loginID smallint unsigned primary key auto_increment,
  prod_name, prod_brand, prod_photo, prod_desc
)engine=innodb
product(
  prodID smallint unsigned primary key auto_increment,
  loginID smallint unsigned,
  foreign key(loginID) references login(loginID),
  cat, subcat, prod_price, prod_w_c
)engine=innodb

Options: ReplyQuote


Subject
Written By
Posted
Re: How to populate one table with values from another table
June 27, 2013 11:14AM


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.