How to select from v$session records which logon_time is less than 2 days before current date?
SELECT * FROM v$session WHERE logon_time + 2 <= currentDate (???)
|
How to select from v$session records which logon_time is less than 2 days before current date?
|
|||
| show 1 more comment |
WHERE logon_time + 2 > SYSDATE. As for, using '8-JUN-12' it's safer to explicitly convert that string to a date with something like:TO_CHAR('08-JUN-2012', 'DD-MON-YYYY'). – George3 Jun 10 '12 at 18:07