Year / month / day / time of the interception when the oracle / minutes / seconds

Modified date, day, hour date format is: ALTER NLS_DATE_FORMAT the session SET = 'YYYY-mm-dd HH24: mi The: SS';
SELECT TO_CHAR (SYSDATE, 'YYYY-mm-dd HH24: mi The: SS') from AS Dual nowtime ; // date when minutes and seconds into a date format
select to_char (sysdate, 'yyyy' ) nowYear from dual; // get time in
select to_char (sysdate, 'mm' ) nowMonth from dual; // get months of
select to_char (sysdate, 'dd' ) nowDay from dual; // time of day acquired
select to_char (sysdate, 'hh24' ) nowHour from dual; // Get the time when the
select to_char (sysdate, 'mi' ) nowMinute from dual ; // Get the time division
select to_char (sysdate, 'ss' ) nowSecond from dual; // Get seconds of

the original link: https: //blog.csdn.net/seekandfindyou/article/details/80668980

Guess you like

Origin www.cnblogs.com/mergy/p/12055055.html