003.Oracle database, query date format format

/*日期格式转换*/    
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' ) ) );

 

 

 

Beginning of the heart do not forget, if you think this article valuable, authors agree to pay, micro-channel two-dimensional code can be any amount of a reward to the author (Micro Signal: 382 477 247) Oh, thank you.

Guess you like

Origin www.cnblogs.com/tianpan2019/p/11862589.html