Excellent and Thank you so much!
Manikandan Arunachalam, September 21, 2017 - 2:48 am UTC
Hi,
I really wanted this one only and it helped.
Thanks and Appreciate it.
September 21, 2017 - 2:53 am UTC
glad we could help
"Date only" ..?
NextName, September 21, 2017 - 12:16 pm UTC
Isn't it a bit misleading to say "sysdate is the current date, and current date only."?
SQL> select to_char(sysdate, 'yyyy-mm-dd hh24:mi') as myDateAndTime from dual;
MYDATEANDTIME
----------------
2017-09-21 14:13
SQL>
September 22, 2017 - 12:32 am UTC
Sorry - typo on my part.
I've corrected the answer.
Not misleading at all really
paul, September 21, 2017 - 2:42 pm UTC
If you look at the Oracle SQL Reference
https://docs.oracle.com/database/121/SQLRF/sql_elements001.htm#SQLRF0021 [..] Valid date range from January 1, 4712 BC, to December 31, 9999 AD. The default format is determined explicitly by the NLS_DATE_FORMAT parameter or implicitly by the NLS_TERRITORY parameter. The size is fixed at 7 bytes. This data type contains the datetime fields YEAR, MONTH, DAY, HOUR, MINUTE, and SECOND. It does not have fractional seconds or a time zone. [..]
Maybe Connor should have just capitalized "date" ;)
September 22, 2017 - 12:31 am UTC
No - sorry, that was my bad typo.
"sysdate is the current date, and current date only. "
should have been:
"sysdate is the current date, and current time only."
I've updated the answer