注册 登录
编程论坛 ASP技术论坛

这句查询语句该怎么写

xmztzgq 发布于 2010-11-24 22:15, 426 次点击
我想将 BillType=2 并且 billAmount=0 的记录排除,请问Select语句该怎么写
5 回复
#2
aspic2010-11-24 22:52
delete from 表 where BillType=2 and billAmount=0
#3
xmztzgq2010-11-24 23:27
回复 2楼 aspic
呵呵,我不是要删除,是想让查询结果里面不包含符合上述条件的记录

[ 本帖最后由 xmztzgq 于 2010-11-24 23:29 编辑 ]
#4
wangjy5002010-11-24 23:31
select * from 表 where BillType<>2 and billAmount<>0
#5
xmztzgq2010-11-26 16:57
回复 4楼 wangjy500
您这样BillType=2但BillAmount<>0的记录没查询到
#6
筱晓绾2010-11-26 17:16
select * from 表名 where BillType<>2 and billAmount<>0 经过测试 这句测试通过
1