Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Manikandan.
Asked: September 20, 2017 - 4:11 pm UTC
Last updated: September 22, 2017 - 12:32 am UTC
Version: 11g
Viewed 50K+ times! This question is
SQL> select sysdate from dual; SYSDATE --------- 21-SEP-17 SQL> select systimestamp from dual; SYSTIMESTAMP --------------------------------------- 21-SEP-17 08.42.33.222000 AM +08:00
SQL> select to_char(systimestamp,'YYYY-MM-DD hh24:mi:ss.ff TZR') from dual; TO_CHAR(SYSTIMESTAMP,'YYYY-MM-DDHH24:MI:SS.FFTZR') -------------------------------------------------------------- 2017-09-21 08:46:24.752000 +08:00
Manikandan Arunachalam, September 21, 2017 - 2:48 am UTC
NextName, September 21, 2017 - 12:16 pm UTC
SQL> select to_char(sysdate, 'yyyy-mm-dd hh24:mi') as myDateAndTime from dual; MYDATEANDTIME ---------------- 2017-09-21 14:13 SQL>
paul, September 21, 2017 - 2:42 pm UTC
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library