当前位置:Gxlcms > 数据库问题 > Oralce给字段追加字符,以及oracle 给字段替换字符

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

时间:2021-07-01 10:21:17 帮助过:35人阅读

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 为原来的字符  你好为 要更改的字符    

 

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

标签:style   family   nbsp   update   name   oralce   ||   字符   内容   

人气教程排行