i want to update a filed named "outofdate"(type date : 2015-01-14 10:03:11 ) based on another filed name "lastmodification" . i want to add 10 days to "outofdate" field where :outofdate < NOW() (actual date)
My code is not working:
Update *
`mytable` set outofdate = lastmodification + 84500*10
WHERE outofdate < NOW( ) LIMIT 0,100
thx in advance!