标签:style blog http color 2014 sql
--************************************************************************************************************* DECLARE @I INT, @YMD VARCHAR(6) SELECT @I=1 SELECT @YMD=convert(char (6), getdate(), 12) WHILE @I<=100 BEGIN INSERT INTO tb2 VALUES(‘V‘+@YMD+RIGHT(CAST( ‘00000‘ +CAST(@I AS VARCHAR(10)) as varchar(100)),5),‘TEST‘) SELECT @I=@I+1 END --************************************************************************************************************
标签:style blog http color 2014 sql
原文地址:http://www.cnblogs.com/allen0118/p/3823054.html