大家好,我机器安装的是sql server 7.0,我现需要对sdb这个表的snum这个字段中的数据进行修改,具体要求如:c20020711这个字串中的第四位全替换为3,即****2****,改为****3**** 。哪位师兄能帮我写出在sql语句,不胜感激!!! 1.update table_name set id=stuff(id,4,1,‘3‘) 2. update 表 set 某一字段=replace(某一字段,‘2003‘,‘2004‘) |
|