
September 14th, 2005, 09:37 AM
|
|
Clueless llama
|
|
Join Date: Feb 2001
Location: Lincoln, NE. USA
|
|
You are close. Use the DAYS designation to tell it you are talking about ten days.
select * from DB2QP.TRACK_QUERY_INFO where time_created<=(current_timestamp-10 DAYS)
Quote: | Originally Posted by angie_4311 I'm trying to select from a table that has a time_created field. I want to select rows where the time created is 10 days ago or more. I keep getting an error.
select * from DB2QP.TRACK_QUERY_INFO where time_created<=(current_timestamp-10)
SQL0182N ERROR
The time_created field is of datatype timestamp.
Any help would be greatly appreciated. |
__________________
~Nemi
Before posting did you try:
[ Javadocs | Google ]
|