in reply to Re: inserting a column into mySQL DB with perl
in thread inserting a column into mySQL DB with perl

That is correct, I have third table in tab-delim file like that. I am assuming I should be normalizing the "Size" of the cars, which is why I have a separate table coding for size of cars. So technically I am trying to update the table, "Cars" to this:
idCars  Car         Size
------  ---         ----
1       MiniCooper  1
2       Civic       2
3       Camry       3
4       Accord      3
Size 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?
  • Comment on Re^2: inserting a column into mySQL DB with perl