摘要:
declare @SQL varchar(max) declare @INSERT varchar(max) declare @Update varchar(max) declare @n intset @n=8set @SQL='SELECT'set @INSERT=''set @Update=''select @SQL=@SQL+C,@INSERT=@INSERT+I from ( select case when number<>@n+1 Thendeclare @SQL varchar(max) declare @INSERT 阅读全文