ITeye博客

mysql字符串替换

xwpxcom · 2012-07-25 16:26 · 数据库 · 数据库 · mysql 字符串替换 · Markdown

update table set field =
replace(
    field ,
    substring(
        field ,
        locate(concat('<A ',''), field ),
        locate(concat('target=_blank>',''),field )+14-locate(concat('<A',''), field )
        ),
    ''
    );

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。