Oracle PL/SQL : remove “space characters” from a string

后端 未结 6 1840
迷失自我
迷失自我 2021-02-02 10:48

In my Oracle 10g database I would like to remove \"space characters\" (spaces, tabs, carriage returns...) from the values of a table field.

Is TRANSLATE() t

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-02 11:39

    select regexp_replace('This is a test   ' || chr(9) || ' foo ', '[[:space:]]', '') from dual;
    
    REGEXP_REPLACE
    --------------
    Thisisatestfoo
    

提交回复
热议问题