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

后端 未结 6 1839
迷失自我
迷失自我 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:23

    I'd go for regexp_replace, although I'm not 100% sure this is usable in PL/SQL

    my_value := regexp_replace(my_value, '[[:space:]]*',''); 
    

提交回复
热议问题