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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -