数据如下:
表a
id,level,age
----------------
1 10 0
2 20 10
3 20 0
4 20 10
请问怎么where 查询所有 level<>20 and age <> 0 的结果呢?
直接 select * from a where level<>20 and age <> 0
会将所有 level等于20的都排除了... 晕. 希望获取到
1 10 0
2 20 10
4 20 10
谢谢~
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
楼上正解,你的描述和你对问题的理解都有问题