SQL SERVER 字符串操作,急,十分急!! 我的一个字段F,本来应该是"/2005/01/30/A01302.jpg"存成了“/2005/01/30A01302.jpg",F字段有一些值是NULL,求修正的SQL,偶是DB新手,HELP! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update taset f = case when f is not null then left(f,11)+'/'+right(f,10) else null end update tb set f = replace(f,'/30/A0' , '/30A0') 谢谢,我先试下,感觉OFFSET不大对呀 update tbset f = replace(f,left(f,11),left(f,11)+'/')where f is not null update 表名set f = case when f is not null then left(f,11)+'/'+substring(f,12,len(f)-11) else null end看看,这样是不是可以 update 表名set f = replace(f,'/30A0' , '/30/A0') 求SQL查询代码 请问:我 用@sSql varchar(8000) 构建一个了动态Sql语句,可是Exec(@sSql)时发现字符的长度超过了8000!!请问有没有什么办法? 怎样将带有图像字段的记录插入到同一个表里面去呢? 关于登录名和用户权限设置问题 两个表组合查询,每个表都有单独的数据,也都需要。内有表结构 存储过程查询问题 ado速度问题 如此条件的查询,其SQL语句该怎样写 交叉动态SQL语句的问题 数据库复制的问题,急! 在线等!关于空间数据库的2个问题! 查询数据库中存入的图片文件的大小
set f = case when f is not null then left(f,11)+'/'+right(f,10) else null end
set f = replace(f,left(f,11),left(f,11)+'/')
where f is not null
set f = case when f is not null then left(f,11)+'/'+substring(f,12,len(f)-11) else null end
看看,这样是不是可以
set f = replace(f,'/30A0' , '/30/A0')