[英]How to remove spaces and special characters between numbers using Oracle regexp_replace
[英]how to remove spaces, special characters and numbers in one oracle sql statement
如何在一個oracle sql語句中刪除空格、特殊字符和數字
編輯
到目前為止嘗試過:
SELECT REGEXP_REPLACE(NAME ,'[^[:alnum:]'' '']', NULL) FROM table
和
SELECT translate(NAME,'[0-9]-/^%#-$&&!_. ','[0-9]') last_names FROM table
假設要刪除一個字母以外的所有字符,可以嘗試以下操作:
select regexp_replace('admin1 xxx', '[^[:alpha:]]', null)
from dual;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.