in reply to Re: Re: Managing Inventory Sections with Perl and SQL
in thread Managing Inventory Sections with Perl and SQL

The placements of the commas in my example are just habit - that should not be an issue.

However I don't really know MySQL, so off-hand I don't see where the syntax error could be. Personally I'd split this out to create each table separately, and that might make it a little easier to find the problem.

In addition I think that you have a slight logic or design problem: Your "item_price" table has primary key "item_id" - which means that you can only have one row in that table for any item, which also means that you can't keep a price history - maybe you don't need it at this point, but I thought I'd point it out.

Michael

  • Comment on Re: Re: Re: Managing Inventory Sections with Perl and SQL