日期:2014-05-17 浏览次数:20977 次
update A1 set
V1=case when CHARINDEX('dd',isnull(V1,''))>0 then V1 when isnull(V1,'')='' then isnull(V1,'')+'dd' else isnull(V1,'')+',dd' end ,
V2=case when CHARINDEX('dd',isnull(V2,''))>0 then V2 when isnull(V2,'')='' then isnull(V2,'')+'dd' else isnull(V2,'')+',dd' end ,
V3=case when CHARINDEX('dd',isnull(V3,''))>0 then V3 when isnull(V3,'')='' then isnull(V3,'')+'dd' else isnull(V3,'')+',dd' end
where name like '%aa%'