大侠们,我要在mybatis 的sql中写正则去掉html标签,但是标签中含有问号信息。
数据库操作会将问号 视为 传参的标识,如何化解 求助,如下(**_里面的问号为变成null_**):
<![CDATA[
select "REGEXP_REPLACE"("REGEXP_REPLACE"(content,'<at>.+?</at>',''),'</?[^>]+>*','') hehe
from sns_search_view
order by create_date desc
]]>