select device_id, gender, age, university from user_profile where age is not null and age != '' 本题是考察空值的过滤,空字符串''同样也会导致空值,所以要同时过滤空字符串值和NULL值。NULL值和空值的区别:1、NULL值占用空间的,而空字符串值是不占用长度空间的2、在表中显示不一样3、查询方式不一样 #NULL值查询方式 select * from user_profile where age is null select * from...