012.Oracle数据库,字符串文本大小写转换,转大写,转小写,首字母大写

/*转大写*/
SELECT 
    UPPER(TITLE_EN)
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     
;

效果如下:

 

 

 

/*转小写*/
SELECT 
    LOWER(TITLE_EN)
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     
;

效果如下:

 

 

/*首字母大写*/
SELECT 
    INITCAP(TITLE_EN)
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     
;

效果如下:

 

 

不忘初心,如果您认为这篇文章有价值,认同作者的付出,可以微信二维码打赏任意金额给作者(微信号:382477247)哦,谢谢。

posted @ 2019-11-14 23:04  像一棵海草海草海草  阅读(1242)  评论(0编辑  收藏  举报