摘要:
--Functioncreate FUNCTION dbo.f_splitBinary(@s varbinary(max)) returns @t table(id int identity(1,1),Value binary(1)) as BEGIN declare @i int, @im int; select @i=1,@im=datalength(@s); while @i<=@im begin insert into @t select substring(@s,@i,1); set @i=@i+... 阅读全文