in reply to Re: inserting a column into mySQL DB with perl
in thread inserting a column into mySQL DB with perl
idCars Car Size ------ --- ---- 1 MiniCooper 1 2 Civic 2 3 Camry 3 4 Accord 3Size is the foreign key to idSize in table, "Size". I'm assuming this is the correct way to normalize? I see so similar to what NetWallah is saying, this would make a relationship table and it is unnecessary to have table, "Cars" with the extra column, "Size"? With the query you provided for me above, it essentially is selecting two columns, Car and Size from empty table CarSize. Then it is filling column, Car with idCars and Size with idSize. However, I am confused from what tables it would be pulling idCars and idSize? From your syntax it would be "from" CarSize, which I thought would be empty?
|
|---|