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
Problem with Joomla email cloaking
Sending and Receiving Data like a Dataset using WCF between two or more programs over internet without IIS Configurations
tool to compare 2 Folders
sql query using count
NetworkStream.DataAvailabl<wbr />e returns false
System.NullReferenceExcept<wbr />ion for Excel.Workbooks.Open (visual Studio
GoogleToolbarUser_32.exe process using 50% of CPU
Converting Lotus .MK4 files to Excel
Dropdowns in grid view 'edit item template' not working
How do you group PowerPoint Objects on a slide