题解 | #用where过滤空值练习#
用where过滤空值练习
https://www.nowcoder.com/practice/08c9846a423540319eea4be44e339e35
select device_id, gender, age, university from user_profile where age is not null;
where 过滤空值,即非空约束,not null;
约束:
非空约束:not null
唯一约束: unique
主键约束: primary key
默认约束:default
外键约束: foreign key
如果有多个约束,约束之间用空格分开
