Oralce给字段追加字符,以及oracle 给字段替换字符

时间:2018-11-27 18:26:24   收藏:0   阅读:164

追加字符

update table_name  t

set t.DIST_NAME = t.DIST_NAME || ‘市‘

where PROD_NAME=‘爱立信‘

table_name  :表名   DIST_NAME:要追加字符的字段      ‘市‘: 追加字符的内容  where 后面为条件 (可不写)

 

替换字符

update table set 字段 =replace(字段,‘hello’,‘你好’) where 条件 

table 为表名    hello 为原来的字符  你好为 要更改的字符    

 

原文:https://www.cnblogs.com/JIKes/p/10027770.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!