Hello:
I am trying to run a script that delete messages from a table older than six months:
--------
ALTER SESSION SET TIME_ZONE = DBTIMEZONE;
SELECT SEQUENCEID FROM MESSAGE_TRACE WHERE CURRENT_TIMESTAMP - MESSAGE_TRACE.TIME_STAMP > INTERVAL '6' MONTH;
--------------
When I run the script I got the following error:
--------
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected INTERVAL got INTERVAL
----------
Oracle 9.2.0.6.0
Regards.
I am trying to run a script that delete messages from a table older than six months:
--------
ALTER SESSION SET TIME_ZONE = DBTIMEZONE;
SELECT SEQUENCEID FROM MESSAGE_TRACE WHERE CURRENT_TIMESTAMP - MESSAGE_TRACE.TIME_STAMP > INTERVAL '6' MONTH;
--------------
When I run the script I got the following error:
--------
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected INTERVAL got INTERVAL
----------
Oracle 9.2.0.6.0
Regards.