SELECT device_id,gender,age from user_profile where age>=20 and age<=23;

或者age between 20 and 23