I'm trying to do this query:
DELETE FROM PHONE WHERE LOGINTIME<DateAdd("h",-2,Now())
(Basically, if someone's login time is more than two hours ago, I will assume that the user didn't log off, and I will delete their record...unless someone knows of a way to delete the record upon session timeout in ASP?)
It works in Access, but it doesn't seem to work in Oracle. I get the error:
ERROR at line 1:
ORA-00904: invalid column name
Is there a way to do this? Any suggestions are greatly appreciated. Thank you in advance for any help.
-DVD Girl
DELETE FROM PHONE WHERE LOGINTIME<DateAdd("h",-2,Now())
(Basically, if someone's login time is more than two hours ago, I will assume that the user didn't log off, and I will delete their record...unless someone knows of a way to delete the record upon session timeout in ASP?)
It works in Access, but it doesn't seem to work in Oracle. I get the error:
ERROR at line 1:
ORA-00904: invalid column name
Is there a way to do this? Any suggestions are greatly appreciated. Thank you in advance for any help.
-DVD Girl