There is a way in MySQL to set a value in a specific datetime. For example:
Today in my Table Test there is
Id Value Expiration Date
1 0 2012-08-07 18:20
2 0 2012-08-10 15:20
Tomorrow i’d like to have
Id Value Expiration Date
1 1 2012-08-07 18:20
2 0 2012-08-10 15:20
The way to do that is just with a job (some timer…)? What is the best practice?
Better way to achive this is by creating EVENT in MySQL as: