|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Comparing the "date" (omitting the time)
Hello,
I need everyones help. The query below works, but it does not retrieve a row that is = to the sysdate. The reason is because it also uses the TIME to compare the with the sysdate. Can someone show me how to write a sql to omit the time from the date in the date column. Thanks! SELECT * FROM MYTABLE WHERE date >= sysdate; |
|
#2
|
|||
|
|||
|
use trunc() on both sides of the equation....
select * from myTable where trunc(date) >= trunc(sysdate); |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Comparing the "date" (omitting the time) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|