select device_id
from user_profile
where id<=2

懒惰版