Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> trunc(sysdate) V6 vs V7

trunc(sysdate) V6 vs V7

From: Amanda Pickard <amanda_at_idunn.demon.co.uk>
Date: Mon, 20 Jul 1998 00:41:10 +0100
Message-ID: <Yegs2CAWQos1IwXq@idunn.demon.co.uk>


Hello

What are the differences in the way that trunc(sysdate) works in version 7 compared with version 6 in Oracle?

Example :
startdate is a database field and is of date format.

Version 6 - This works as expected

          trunc(sysdate) - startdate

Version 7 - NOT as expected

          trunc(sysdate) - startdate
Version 7 - Works OK

          trunc(sysdate) - trunc(startdate) Version 7 - Works OK

          sysdate - startdate

I have loads of code to possibly change and would like some proper confirmation that there are differences for the boss ;-)

Thanks
--
Amanda Pickard Received on Sun Jul 19 1998 - 18:41:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US