不喜欢商品表:product_id, user_id 查询:1、 获得用户的不喜欢商品ID列表 = not_like_product_ids2、 SELECT * FROM product WHERE id NOT IN (not_like_product_ids) AND ... 大致这么想到
不喜欢商品表:
product_id, user_id
查询:
1、 获得用户的不喜欢商品ID列表 = not_like_product_ids
2、
SELECT * FROM product WHERE id NOT IN (not_like_product_ids) AND ...
大致这么想到