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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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