我有一张桌子,我一直在发布评论类型、金额等。
PostExtras
- id
- amount
- post_id (foreign key)
- comment_type (foreign key)
- ...
comment_type
- id
- name
我想选择具有重复评论类型的帖子。
例子:
- id - amount - post_id - comment_type
1 20 23 1
2 45 23 2
3 80 28 1
4 78 28 2
5 56 23 1
第 1 行和第 5 行实际上是相同的。