<分区>
我有两个表。
用户类型
- (1)个人
- (2)业务
- (3)学生
Relationship_cat
- cat_id
- 猫的名字
- 用户编号
- 用户类型
首先使用 Relationship_cat
,我希望条目看起来像这样
cat_id(1), cat_name(interests) ,user_id(ANy user), user_type(only 1 and 3)
cat_id(2), cat_name(news) ,user_id(ANy user), user_type(only 2 and 3)
etc
使用 user_type
我相信我可以将其默认设置为 0,因此它不受任何用户的限制。我该如何处理 "relationship_cat > user_type"
案例?我是否使用逗号分隔的值列表?有效率吗?如果有很多 User_types
条目增加怎么办?