select to_char(sysdate, 'yyyymmdd') from dual; 转当前时间为字符 to_char(to_date('2011126','yyyyMMdd'),'yyyyMMdd') 字符串-date-字符