Query :
UPDATE `master_customer`
SET `customer_group_id` = 19
WHERE `customer_code` IN( SELECT *
FROM `master_customer` a,
`master_customer_group` b
WHERE a.`customer_group_id` = b.`id`
AND b.`id` = 8);
Result:
Query:
UPDATE `master_customer` SET `customer_group_id` = 19 WHERE `customer_code` IN( SELECT a.`customer_code` FROM `master_customer` ...
Error Code: 1093 You can't specify target table 'master_customer' for update in FROM clause