UPDATE `comp_acc_det` SET `amountdr` = amountdr +11500, `amountcr` = amountcr +0, `total` = amountdr - amountcr, `updatedBy` = '19' WHERE `companyID` =  '110' AND `acctID` =  '29587' AND `year` =  '2014' AND `period` =  '9'