追加字符

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

 

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2022-02-11
猜你喜欢
  • 2022-03-05
  • 2021-06-23
  • 2021-12-27
  • 2022-12-23
  • 2021-11-25
相关资源
相似解决方案