oracle替换表字段中的部分内容为指定内容

oracle替换字段中的内容

    FILE_TEMP :要替换的表

    OLDNAME:要替换的字段

    test:要替换的内容

    10.245.0.89:8080:替换后的内容

update FILE_TEMP set OLDNAME=replace(OLDNAME,'test','12345678') where OLDNAME like '%test%';


where OLDNAME like '%te%'  :根据实际情况更改;


这样可以修改FILE_TEMP 表中OLDNAME字段中 所有包括test的值  为12345678

猜你喜欢

转载自blog.csdn.net/hiqingtian/article/details/79390698
今日推荐