I have table name "info" with column "lastupdated" (datatype is datetime),I just want to update all record where "updatedOn" is not equal to currentdate/today's date
Here is my table "info"
id status lastupdated
1 1 2010-01-01 13:25:02
2 NULL 2010-01-03 14:05:02
3 1 2010-01-02 13:30:01
I tried with following query but not working,Where i am wrong ?
UPDATE info SET status = NULL
WHERE lastupdated != '2020-01-03'