I think the first is more common. 'At school' to me is purely geographical, while 'in school' is more conceptual -- during lessons, among classes, while studying.
I met my wife in university, though most of my friends met theirs in high school.
I got lost on Saturday at school, so I must have a bad sense of direction.
Student or Learner