------解决方案-------------------- declare @T table(id varchar(20)) insert into @T select '0000001' union all select '0000002' union all select '0000003' union all select '0000004' union all select '0000005' union all select null select isnull(id,'') as id from @T
———————————————————————— id -------------------- 0000001 0000002 0000003 0000004 0000005
------解决方案-------------------- UPDATE a SET [name]=ISNULL([name],'') WHERE [name] IS NULL
------解决方案-------------------- 已经给出很多方法了