013.Oracle database, SUBSTR take substring

/ * The Oracle database query date between the two * / 
the SELECT  
    EXPIRE_DATE, SUBSTR (EXPIRE_DATE, 1 ,   3 )
 the FROM
    ME_EO 
WHERE
    ( 
        ISSUE_DATE BETWEEN to_date( '2017-02-04', 'yyyy-MM-DD' ) AND to_date( '2017-02-09', 'yyyy-MM-DD' )    
      AND ( ROWNUM <= 1 )    
    )
    ORDER  BY -ATA ASC      
;

Modify as follows:

 

 

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/11863363.html