mysql 删除 某字段中的指定字符串

用replace把要删除的字符替换成空串就可以了 update 表名 set 字段=replace(字段,'要删除的串','') where 条件
mysql 删除 某字段中的指定字符串
update 表 set 字段='' where 字段='xxxxx'2012-07-09
用replace把要删除的字符替换成空串就可以了

update 表名 set 字段=replace(字段,'要删除的串','') where 条件2012-07-09
update

set
字段 = REPLACE(字段,'123','') where
字段 = 'xxxxx'2012-07-09
通过程序操作, 再更新.2012-07-09
mengvlog 阅读 132 次 更新于 2025-09-10 07:31:01 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部