This is my query
UPDATE ludo_purchase_detailed_history
SET fto_date = logs_20221002.fto_date
FROM logs_20221002
WHERE ludo_purchase_detailed_history.uid= logs_20221002.uid;
This is the error I am getting
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM logs_20221002 WHERE ludo_purchase_detailed_history.uid= logs_20221002.uid' at line 1
Please help me. If anyone know what I am doing wrong here.