我想实现评论,评级,标签等模块到我的实体。我的想法是:标签,评论,评级等数据库设计
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