In my opinion, it is OK with a comma. If you want to use a semi colon, here's how I would do it:
Patrick studied all night; he got an A on the exam.
I was taught to use the semi colon when I wanted (or needed, for the sake of space) to leave something out of the sentence.
Hope it helps.
Student or Learner