Microsoft
Software
Hardware
Network
Question : How to subtract hours from date
in my query I need to delete all the rows from a table where date is older than 48 hours.
so it would be like:
delete from my_table t where t.date greater (older) than 48 hours.
I am using Java and Oracle
and the field in my Java code is of type Calendar.
What would be the best way to do it?
Answer : How to subtract hours from date
where datediff(hour, today(), t.date) > 48
would do the trick if datediff existed.
http://www.dbforums.com/or
acle/16194
07-datedif
f-function
-
oracle.ht
ml
But you can try ...
where (sysdate - t.date) > 2
Random Solutions
Datediff HALF YEAR?? and dateadd
Moving a Certificate Authority (CA) to another DC with different name
Pivot Table control in C-Sharp
Designing a new Application in C# from the ground up - Windows Forms or WPF? Custom Data Classes or Built in Data Classes?
Exchange 2010 After install when initialising it looks for the DC not the member server
Exporting to pdf from crystal reports stopped working
TSQL: How to plug Nulls with Lookup values in same column and limited keys
Custom Icons on Toolbar- how to? Access 2000
msxml3.dll is not able to be registered
stopping excel flickering