MySQL Forums
Forum List  »  Newbie

Question about data structuring
Posted by: D Y
Date: September 11, 2007 07:53PM

Hello everyone, I am new to using mySQL and I am a bit lost. I would like to store data structured in multiple categories like this...

Category 1:
- Category ID
- Description of category
- Items
--- Item 1 w/ corresponding item ID
--- Item 2 w/ corresponding item ID
--- etc...

Category 2:
- Category ID
- Description of category
- Items
--- Item 1 w/ corresponding item ID
--- Item 2 w/ corresponding item ID
--- etc...

How would I represent this data with mysql? Do I make each category a separate database file? Or can I use tables to represent each category? How do I represent an item array in a table? And how do I link another array of item ids to the item array (such that when I need to sort the item IDs, the item list are also sorted)?

Thank you.

Options: ReplyQuote


Subject
Written By
Posted
Question about data structuring
D Y
September 11, 2007 07:53PM


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.