Jump to content

thisuser

New Members
  • Posts

    1
  • Joined

  • Last visited

thisuser's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Let's say I want to store price, quantity, description and a pics of the product. So the table will have 5 fields including primary key this means that if a user wants to add 5 pics then I set up my database with 9 columns. Let's say I give the user an upper limit of 10 pics per product so the table would have 15 or so columns. (The pic fields won't actually contain images but only the URL of where the image is) Is this good practice? Or any other ways to set up this kind of db? Or would it be better performance wise to set up another table linked using the primary/foreign key? Any other things I haven't considered?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.