Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Date and DateTime columns
> trunc(date_column) = ...
>
> or specify a BETWEEN clause with time fraction 00:00:00 and 23:59:59
> (not having to specify this in every SQL-statement is probably what
> Dag Arne means by 'cleaner SQL') .
>
That is a perfect example of what I mean. Then add aggregate functions,
group by, ...
Another factor for us is portability between dbms platforms.
"where xxx_dt = :my_date" works on all platforms, while the other examples
Jaap mentions might have to be written differently for each dbms platform.
D A Received on Wed Jan 09 2002 - 04:35:56 CST