【发布时间】:2020-06-14 18:03:18
【问题描述】:
update customer set cust_info= REGEXP_REPLACE(cust_info,'<start><cust_name><start><cust_name><this field has long string><end>','') where user_id=123;
ORA-12733: 正则表达式太长
所以我尝试了REGEXP_REPLACE(cust_info,'<start>[A-Z0-9_](*.?)<end>','');
但没用。
我想将<start> 字符串和<end> 字符串之间的任何内容替换为空白。
(即删除<start> 和<end> 之间的任何内容)。
PS:- cust_info 列包含带有 html 标签的长字符串。
【问题讨论】:
-
如果您编辑原始帖子以显示您正在使用的实际数据以及您期望的结果,这将有所帮助。
标签: sql oracle regexp-replace