Your inserts should be:
Code:
UPDATE
mail
SET
mail_received_date = 'YYYY-MM-DD'
where
mail_id = '1' ;
..and only if the mail_id column is a char/string type. If it's a number, it should be:
Code:
UPDATE
mail
SET
mail_received_date = 'YYYY-MM-DD'
where
mail_id = 1 ;
(note, no quotes on mail_id)
Regards,
Matt.
