法一: age 不为 '' select device_id,gender,age,university from user_profile where age!=''; 法二: is not null表示不为空 select device_id,gender,age,university from user_profile where age is not null; 法三: 年龄不会小于0。 select device_id,gender,age,university from user_profile where age > 0;