im try to execute sql query that will check if some time (like 10 sec) past from last timestamp update in my table and chenge other table if yes.
My question is if ther is any time-stamp conditional operator that can check this? For example < , > ,=?
(I know that I can do it in to different query, but I'm try do to it in 1 query)..
Something like this
UPDATE Person SET isconnected=false
where person.email=(select from imalive where timestamp<10).
person:
email: [email protected]
name: dan
age: 20
isAlive:
email: [email protected]
lastseen: 2011-09-04 21:27:00
So at last if the person is last seen will be more then 10 sec he will go to isconnected =false.