to_date
select to_date('2005-01-01 13:14:20','yyyy-MM-dd HH24:mi:ss') from dual;
to_char
select to_char(sysdate,'yyyy-MM-dd HH24:mi:ss') from dual;//mi是分钟
to_date
select to_date('2005-01-01 13:14:20','yyyy-MM-dd HH24:mi:ss') from dual;
to_char
select to_char(sysdate,'yyyy-MM-dd HH24:mi:ss') from dual;//mi是分钟