UPDATE notification SET saved=1 and id=#{id} UPDATE notification SET hide=#{hide}, saved=1 where id = #{Id} UPDATE notification SET hide=0