Select device_id,gender,age,university from user_profile where age <> 'null'

可能在这里年龄是文本,所以需要在null的边上加上引号