我想實現評論,評級,標籤等模塊到我的實體。我的想法是:標籤,評論,評級等數據庫設計
comments_table - > COMMENT_ID,COMMENT_TEXT
使用實體 - > entitity1_id,entity1_text
ENTITY2 - > entitity2_id,entity2_text
entity1_comments - > entity1_id,COMMENT_ID
entity2_comments - > entity2_id,comment_id
....
這種方法是否正確?
你說插入兩個屬性使用實體ANS ENTITY2屬性到entitycomments表。如果我有10個實體呢? 10個獨立的屬性和大量的空值? – 2009-07-28 17:00:29