/*日期格式转换*/    
SELECT
TO_CHAR( OCCUR_DATE, 'yyyy/mm/dd hh24:mi:ss' )
FROM
LM_FAULT
WHERE
( ( OCCUR_DATE >= to_date( '2017-05-01', 'yyyy-MM-DD' ) ) AND ( OCCUR_DATE <= to_date( '2017-05-15', 'yyyy-MM-DD' ) ) );


 

003.Oracle数据库 , 查询日期格式格式化_微信