Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to replace special characters with default value in table column

User_58ED4Feb 19 2022

Hi,
I would like to replace default value 'ABC' when 'Invoice_desc' column having special characters like below
4835-079 GUIMARÃES
Yenilevent/BeÅŸiktaÅŸ
I wrote below query to replace the column value but its not working as expected
SELECT CASE WHEN REGEXP_LIKE (invoice_desc, '[^[:alnum:] &!"$%^()_+=*{};:@#~,<.>?\|-]') THEN 'ABC' ELSE invoice_desc
END AS invoice_desc,invoice_num
FROM ap_invoices_all
WHERE 1=1
--and REGEXP_LIKE (invoice_desc, '[^[:alnum:] &!"$%^()_+=*{};:@#~,<.>/?\|]');
Can you please help me on this issue.
Thanks

This post has been answered by Frank Kulash on Feb 21 2022
Jump to Answer
Comments
Post Details
Added on Feb 19 2022
5 comments
1,132 views