1. 程式人生 > >Oralce給字段追加字符,以及oracle 給字段替換字符

Oralce給字段追加字符,以及oracle 給字段替換字符

HERE oralce 表名 repl oracle ble ace under font

追加字符

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 給字段替換字符