Finding and removing non ascii characters from an Oracle Varchar2

前端 未结 17 2167
猫巷女王i
猫巷女王i 2020-12-02 23:03

We are currently migrating one of our oracle databases to UTF8 and we have found a few records that are near the 4000 byte varchar limit. When we try and migrate these reco

17条回答
  •  -上瘾入骨i
    2020-12-02 23:45

    Thanks, this worked for my purposes. BTW there is a missing single-quote in the example, above.

    REGEXP_REPLACE (COLUMN,'[^' || CHR (32) || '-' || CHR (127) || ']', ' '))
    

    I used it in a word-wrap function. Occasionally there was an embedded NewLine/ NL / CHR(10) / 0A in the incoming text that was messing things up.

提交回复
热议问题