sqlserver 循环加类型转换拼接
declare @i int
set @i=1;
while @i<50
begin
insert [GCSDB].[dbo].[ORGANIZATION_UNIT] (
[ORG_UNIT_ID]
,[ORG_UNTI_NAME]
,[ORG_UNTI_REMARK]
,[UNIT_IS_SIMULATE])
values (@i,cast(@i as varchar(10))+'号','',1)
set @i = @i + 1
end