sql - How do you store variables fields? -


i've database i've comments, votes, galleries, images, etc... examples, galleries , images can commented using same form, i'll store in single table, comment.

i'm wondering how store type information in comment table? using enum type, foreign key against type table, hardcoded on insert, etc.. ?

foreign key against type table vote. this:

alt text


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

xslt - Umbraco and EXSLT sets do not work -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -