34,873
社区成员
发帖
与我相关
我的任务
分享declare @tb table (id varchar(10))
insert into @tb select '0001'
insert into @tb select '002'
insert into @tb select '03'
update @tb set id=REPLICATE('0',8-len(id))+id
select * from @tbdeclare @tb table (id varchar(10))
insert into @tb select '0001'
insert into @tb select '0002'
insert into @tb select '0003'
update @tb set id=REPLICATE('0',8-len(id))+id
select * from @tbupdate table
set 编号 = '000'+编号