我有一个类似于微博的表, 功能是想让用户看过这条微博就不再显示了.
weibo: {type:String, default:null}
read: {type:objid,default: null}
然后循环对比吗? 实在想不通了 求救.
A 是消息表, B 是已读, C 是用户表.
A 表查询的时候 类似于 A._id != (B.read = true and C.uid = 1).readid
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
topic 表
user 表
read 表
显示时只查询read为false的就行了啊