字段 id
H1
H2
H3
现在想要在H后添加一个0,请问该如何写SQL语句?
谢谢~~
------解决方案--------------------
update 表
set id=replace(id, 'H ', 'H0 ')
------解决方案--------------------
update tablename set id=stuff(id,1,1, 'H0 ')
------解决方案--------------------
方法一
update 表 set id=replace(id, 'H ', 'H0 ')
方法二
update 表 set id=stuff(id,1,1, 'H0 ')