oracle 去掉html標籤

語法

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;|&','')   ; 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章