按id查询前20个帖子 当 class=1 或 class=2 或 class=3 而且不管class等于几同时得满足 isshow = 1
怎么写?下面这么写好像不对,可能的使用连接?
select top 20 * from table where class=1 or class=2 or class=3  and  iisshow = 1  order by id desc