SELECT device_id,university from user_profile Where university="北京大学"

Select的S必须要大写