語法
Oracle數據庫中的REGEXP_REPLACE函數的語法是:
REGEXP_REPLACE(source_char, pattern [, replace_string [, position [, occurrence [, match_parameter ]
--更新oralce數據庫歷史數據去掉標籤存入無標籤字段
update IAM_WORK_ITEM_CONTENT t set t.item_content_nolabel = regexp_replace(t.ITEM_CONTENT,'\s*|\t|\r|\n','') ;
update IAM_WORK_ITEM_CONTENT t set t.item_content_nolabel = regexp_replace(t.item_content_nolabel,'<style[^>]*?>.*</style>','') ;
update IAM_WORK_ITEM_CONTENT t set t.item_content_nolabel = regexp_replace(t.item_content_nolabel,'</?[^>]*>|nbsp;|&','') ;