Home » SQL & PL/SQL » SQL & PL/SQL » Difference between sysdate , current date , current_timestamp and local_timestamp (Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi)
Difference between sysdate , current date , current_timestamp and local_timestamp [message #555986] Wed, 30 May 2012 07:30 Go to next message
saipradyumn
Messages: 419
Registered: October 2011
Location: Hyderabad
Senior Member
Hi all

What is the difference between the following . In my schema all are giving the same results with some different format



SQL> SELECT sysdate , current_date , current_timestamp  , localtimestamp from dual;
 
SYSDATE     CURRENT_DATE CURRENT_TIMESTAMP                                 LOCALTIMESTAMP
----------- ------------ ------------------------------------------------- -------------------------------------------------
5/30/2012 8 5/30/2012 8: 30-MAY-12 08.27.22.037703 AM -04:00               30-MAY-12 08.27.22.037703 AM




Thanks
SaiPradyumn
Re: Difference between sysdate , current date , current_timestamp and local_timestamp [message #555987 is a reply to message #555986] Wed, 30 May 2012 07:49 Go to previous message
Michel Cadot
Messages: 68767
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
All these ones are described in details in Database SQL Reference.
Maybe you should read it.

Regards
Michel
Previous Topic: Why to use cursors?
Next Topic: convert T-SQL procedure to ORACLE procedure
Goto Forum:
  


Current Time: Fri Aug 29 11:08:37 CDT 2025