Hi,
I wish to delete old sessions in a web application. Presently, I am hard wiring the time interval to two hours and using the following query.
DELETE Sessions
WHERE DATE_ADD(Sessions.LastAccessedOn, INTERVAL 2 HOUR) >= CURRENT_TIMESTAMP();
This query is a part of a stored procedure and I am syntax error. Can somebody help me get the syntax right ?
Thank You.
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --