I am trying to increment 'sellingDate' field that's in 'company' table.
UPDATE company
SET sellingDate = ((SELECT DATE_ADD((SELECT sellingDate
FROM company
WHERE cid = '35'), INTERVAL 1 DAY)))
WHERE cid = '35';
This query gives me an error saying:
Error Code: 1093
You can't specify target table 'company' for update in FROM clause
What am I doing wrong here?