<分区>
假设我有一个表,用于产品、用户和用户制作的产品的“喜欢”。像这样:
create table likes (
user_id int unsigned not null,
product_id int unsigned not null,
rating set('like','dislike') not null,
primary key (user_id, product_id)
);
在特定产品的页面上,我想查询“likes”表以查找其他一些被也喜欢该特定产品的用户“喜欢”的产品。这个查询会是什么样子?