select id,title,body,user,isgood,isdel from 帖子表 where
id in (select titleid from 收藏表 where user='收藏用户')
and isdel<>'1' order by id学习,不知道可不可以,你试试,权且做抛砖引玉吧。
id in (select titleid from 收藏表 where user='收藏用户')
and isdel<>'1' order by id学习,不知道可不可以,你试试,权且做抛砖引玉吧。
where 第一个表.id = 另外一个表.titleid
and 第一个表.isdel<>'1' and 另外一个表.user = '收藏用户'