I wouldn't use either expression in your sentence. I would keep them for contexts in which a student is receiving instruction: Guess what I learned in/at school today? He never was very good in/at school.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Cool Breeze I would keep them for contexts in which a student is receiving instruction:I'm sorry, I didn't understand this idea.