我做的是信息网站的首页显示的 语句 我表里面有 id,tile, typeoneid,typetwoid,username,state 等字段 这里的 state是确定是否显示的字段 username是会员名
现在问题 我想显示 这样的记录 state<>0 typeoneid=2 username<>'ali' 我这样写了不行后来 username 用 in 做了 select top*10 title from news where [username] in('ali','dengjian') and [state]<>0 and [typeoneid]=2 可以显示 会员名ali和dengjian的并已审核的 但我想要的是 会员名不是 ali 的并已审核的 并[typeoneid]=2 的记录 用 select top*10 title from news where [username] not in('ali','dengjian') and [state]<>0 and [typeoneid]=2 查不了