update exam
set end_time     = ?,
    score_online = 0,
    details      = null
where id = ?

