【发布时间】:2015-12-17 06:55:57
【问题描述】:
这是我的关注者/关注者数据库表模式。 我想获取特定用户的所有数据。例如 user_id 6 跟随 7,8,9 并且跟随 7。我的目的是确定该特定用户是否关注他的追随者。我怎样才能做到这一点?
id | user_id | follower_id
------------------------------------
1 6 7
2 6 8
3 7 6
4 8 15
5 6 9
6 5 7
【问题讨论】:
-
好的,到目前为止你做了什么?你试过什么吗?
-
我认为您必须使用带有 GROUP BY 语句的查询
-
这是什么意思
i want to list all this listing that if user_id 6 gets his followers then also get that he is also follow to that user or not.
标签: mysql