I would like to create an image database. Each image can have one or more tags, such as: Paris, April 2010, David.
How do you store this information? I thought the table Fileshas 1 row per file, and one of the columns is tag identifiers separated by commas, for example: 2,4,14,15
In another table called TagsI thought that I have one row per tag, for example:
Tag ID Tag Name
------ --------
1 April
2 David
3 Paris
Do you think this is a good idea for tag management? For example, how can I easily get all the tag names of a particular image?
source
share