题解 | 查找某个年龄段的用户信息
查找某个年龄段的用户信息
https://www.nowcoder.com/practice/be54223075cc43ceb20e4ce8a8e3e340
select device_id,gender,age from user_profile where age>=20 and age<=23;
出现问题的地方在于自己看到题目条件中的“20及以上”这里是包括了20的
另外一点就是利用where来添加语句的时候,如果包含有多个条件,那么应该利用and来添加条件