UPDATE `comp_acc_det` SET `amountdr` = amountdr +100000, `amountcr` = amountcr +0, `total` = amountdr - amountcr, `updatedBy` = '1' WHERE `companyID` =  '1' AND `acctID` =  '9' AND `year` =  '2014' AND `period` =  '5'