题解 | #用where过滤空值练习#
用where过滤空值练习
https://www.nowcoder.com/practice/08c9846a423540319eea4be44e339e35
select device_id, gender, age, university from user_profile where age is not null;
考察比较运算符is null和not,mysql常用的条件查询:
- 比较运算符
- 大于
- 小于
- 大于等于
- 小于等于
- 等于
- 不等于
- between...and...
- in(...)
- like 占位符
- is null
- 逻辑运算符
- and/&&
- or/||
- not/!